mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Always initialize Context before unit test
This commit is contained in:
parent
c8cac3653f
commit
af0dab0e1b
2 changed files with 1 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue