Running functional test with check for 404.
[PDOException]
There is no active transaction
$I->amOnPage('/xx');
$I->seeResponseCodeIs(404);
class_name: FunctionalTester
modules:
enabled:
- Filesystem
- Yii2
config:
Yii2:
configFile: 'codeception/_config/test.php'
If I replace my base Docker image with an older version which had 2.2.5, tests pass.
Add cleanup: false parameter to Yii2 module.
config:
Yii2:
configFile: 'codeception/_config/test.php'
cleanup: false
Like here: https://github.com/yiisoft/yii2-app-basic/blob/master/codeception.yml
Fixed. Nice!
@DavertMik consistency vs backwards compatibility :)
Most helpful comment
Add
cleanup: falseparameter to Yii2 module.Like here: https://github.com/yiisoft/yii2-app-basic/blob/master/codeception.yml