Always initialize Context before unit test

This commit is contained in:
Kijin Sung 2023-10-31 11:35:54 +09:00
parent c8cac3653f
commit af0dab0e1b
2 changed files with 1 additions and 5 deletions

View file

@ -12,6 +12,7 @@ $_SERVER['REQUEST_URI'] = '/' . basename(dirname(__DIR__)) . '/index.php';
// Include the autoloader.
require_once dirname(__DIR__) . '/common/autoload.php';
Context::init();
function _debug() {
$args = func_get_args();

View file

@ -2,11 +2,6 @@
class PasswordTest extends \Codeception\Test\Unit
{
public function _before()
{
\Context::init();
}
public function testIsValidAlgorithm()
{
$this->assertTrue(Rhymix\Framework\Password::isValidAlgorithm('bcrypt'));