mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Upgrade Codeception до 2.2 (падает тест в AccountIdentity при массовом прогоне, т.к. изменился домен, походу)
This commit is contained in:
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user