mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +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.
|
// Include the autoloader.
|
||||||
require_once dirname(__DIR__) . '/common/autoload.php';
|
require_once dirname(__DIR__) . '/common/autoload.php';
|
||||||
|
Context::init();
|
||||||
|
|
||||||
function _debug() {
|
function _debug() {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
class PasswordTest extends \Codeception\Test\Unit
|
class PasswordTest extends \Codeception\Test\Unit
|
||||||
{
|
{
|
||||||
public function _before()
|
|
||||||
{
|
|
||||||
\Context::init();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testIsValidAlgorithm()
|
public function testIsValidAlgorithm()
|
||||||
{
|
{
|
||||||
$this->assertTrue(Rhymix\Framework\Password::isValidAlgorithm('bcrypt'));
|
$this->assertTrue(Rhymix\Framework\Password::isValidAlgorithm('bcrypt'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue