diff --git a/composer.json b/composer.json index e3f4eed..a9de380 100644 --- a/composer.json +++ b/composer.json @@ -33,10 +33,11 @@ "yiisoft/yii2-gii": "*", "yiisoft/yii2-faker": "*", "flow/jsonpath": "^0.3.1", - "codeception/codeception": "~2.1.10", + "codeception/codeception": "~2.2.4", "codeception/specify": "*", "codeception/verify": "*", - "phploc/phploc": "^3.0.1" + "phploc/phploc": "^3.0.1", + "predis/predis": "^1.0" }, "config": { "process-timeout": 1800 diff --git a/tests/codeception/api/_bootstrap.php b/tests/codeception/api/_bootstrap.php index 9c2d2aa..03865c3 100644 --- a/tests/codeception/api/_bootstrap.php +++ b/tests/codeception/api/_bootstrap.php @@ -3,8 +3,7 @@ use Codeception\Configuration; use Codeception\Specify\Config; defined('YII_DEBUG') or define('YII_DEBUG', true); -defined('YII_ENV_TEST') or define('YII_ENV_TEST', true); -defined('YII_ENV') or define('YII_ENV', 'dev'); +defined('YII_ENV') or define('YII_ENV', 'test'); defined('API_ENTRY_URL') or define('API_ENTRY_URL', parse_url(Configuration::config()['config']['test_entry_url'], PHP_URL_PATH)); defined('API_ENTRY_FILE') or define('API_ENTRY_FILE', __DIR__ . '/../../../api/web/index.php'); diff --git a/tests/codeception/bin/_bootstrap.php b/tests/codeception/bin/_bootstrap.php index 8b78584..abbeded 100644 --- a/tests/codeception/bin/_bootstrap.php +++ b/tests/codeception/bin/_bootstrap.php @@ -1,7 +1,6 @@ loadFixtures(); } - public function _after(TestCase $test) { + public function _after(TestInterface $test) { $this->unloadFixtures(); } public function globalFixtures() { return [ - InitDbFixture::className(), + InitDbFixture::class, ]; } diff --git a/tests/codeception/console/_bootstrap.php b/tests/codeception/console/_bootstrap.php index 98f4993..97426fc 100644 --- a/tests/codeception/console/_bootstrap.php +++ b/tests/codeception/console/_bootstrap.php @@ -1,7 +1,6 @@