diff --git a/composer.json b/composer.json index 9624f06..862b0db 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "yiisoft/yii2-faker": "*", "flow/jsonpath": "^0.3.1", "phpunit/phpunit": "^5.7", - "codeception/codeception": "~2.3", + "codeception/codeception": "2.3.4", "codeception/specify": "*", "codeception/verify": "*", "phploc/phploc": "^3.0.1", diff --git a/tests/codeception/api/functional.suite.yml b/tests/codeception/api/functional.suite.yml index 3dd11ab..2c726d3 100644 --- a/tests/codeception/api/functional.suite.yml +++ b/tests/codeception/api/functional.suite.yml @@ -13,6 +13,7 @@ modules: Yii2: configFile: '../config/api/functional.php' cleanup: true + transaction: false Redis: host: "%REDIS_HOST%" port: 6379 diff --git a/tests/codeception/api/unit.suite.yml b/tests/codeception/api/unit.suite.yml index ddf9713..ccb1862 100644 --- a/tests/codeception/api/unit.suite.yml +++ b/tests/codeception/api/unit.suite.yml @@ -9,3 +9,4 @@ modules: Yii2: configFile: '../config/api/unit.php' cleanup: true + transaction: false diff --git a/tests/codeception/api/unit/models/authentication/RegistrationFormTest.php b/tests/codeception/api/unit/models/authentication/RegistrationFormTest.php index d3e7c57..2db914f 100644 --- a/tests/codeception/api/unit/models/authentication/RegistrationFormTest.php +++ b/tests/codeception/api/unit/models/authentication/RegistrationFormTest.php @@ -10,6 +10,8 @@ use common\models\UsernameHistory; use GuzzleHttp\ClientInterface; use tests\codeception\api\unit\TestCase; use tests\codeception\common\fixtures\AccountFixture; +use tests\codeception\common\fixtures\EmailActivationFixture; +use tests\codeception\common\fixtures\UsernameHistoryFixture; use Yii; use yii\web\Request; use const common\LATEST_RULES_VERSION; @@ -30,6 +32,8 @@ class RegistrationFormTest extends TestCase { public function _fixtures() { return [ 'accounts' => AccountFixture::class, + 'emailActivations' => EmailActivationFixture::class, + 'usernameHistory' => UsernameHistoryFixture::class, ]; } diff --git a/tests/codeception/common/unit.suite.yml b/tests/codeception/common/unit.suite.yml index 74f9d6a..11d4bb4 100644 --- a/tests/codeception/common/unit.suite.yml +++ b/tests/codeception/common/unit.suite.yml @@ -8,3 +8,4 @@ modules: Yii2: configFile: '../config/common/unit.php' cleanup: true + transaction: false diff --git a/tests/codeception/console/unit.suite.yml b/tests/codeception/console/unit.suite.yml index 110e551..baa5a80 100644 --- a/tests/codeception/console/unit.suite.yml +++ b/tests/codeception/console/unit.suite.yml @@ -8,3 +8,4 @@ modules: Yii2: configFile: '../config/console/unit.php' cleanup: true + transaction: false