Upgrade Codeception до 2.2 (падает тест в AccountIdentity при массовом прогоне, т.к. изменился домен, походу)

This commit is contained in:
ErickSkrauch
2016-09-19 02:13:17 +03:00
parent 01b68afc19
commit 264cb25ddc
6 changed files with 11 additions and 14 deletions

View File

@ -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';

View File

@ -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,
];
}