mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 02:32:26 +05:30
Upgrade Codeception до 2.2 (падает тест в AccountIdentity при массовом прогоне, т.к. изменился домен, походу)
This commit is contained in:
parent
01b68afc19
commit
264cb25ddc
@ -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
|
||||
|
@ -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');
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
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');
|
||||
|
||||
require_once __DIR__ . '/../../../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../../../vendor/yiisoft/yii2/Yii.php';
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
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');
|
||||
|
||||
require_once __DIR__ . '/../../../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../../../vendor/yiisoft/yii2/Yii.php';
|
||||
|
@ -2,7 +2,7 @@
|
||||
namespace tests\codeception\common\_support;
|
||||
|
||||
use Codeception\Module;
|
||||
use Codeception\TestCase;
|
||||
use Codeception\TestInterface;
|
||||
use tests\codeception\common\fixtures\AccountFixture;
|
||||
use tests\codeception\common\fixtures\AccountSessionFixture;
|
||||
use tests\codeception\common\fixtures\EmailActivationFixture;
|
||||
@ -32,17 +32,17 @@ class FixtureHelper extends Module {
|
||||
getFixture as protected;
|
||||
}
|
||||
|
||||
public function _before(TestCase $test) {
|
||||
public function _before(TestInterface $test) {
|
||||
$this->loadFixtures();
|
||||
}
|
||||
|
||||
public function _after(TestCase $test) {
|
||||
public function _after(TestInterface $test) {
|
||||
$this->unloadFixtures();
|
||||
}
|
||||
|
||||
public function globalFixtures() {
|
||||
return [
|
||||
InitDbFixture::className(),
|
||||
InitDbFixture::class,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
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');
|
||||
|
||||
require_once __DIR__ . '/../../../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../../../vendor/yiisoft/yii2/Yii.php';
|
||||
|
Loading…
Reference in New Issue
Block a user