Skip to content

Commit

Permalink
Merge pull request #72 from Codeception/codecept5
Browse files Browse the repository at this point in the history
Fix compatibility with Codeception 5
  • Loading branch information
Naktibalda committed Jul 15, 2022
2 parents 1b858a2 + 851afe8 commit 338ab4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -19,7 +19,7 @@
"minimum-stability": "dev",
"require": {
"php": "^8.0",
"codeception/codeception": "^5.0.0",
"codeception/codeception": "^5.0.0-RC6",
"codeception/lib-innerbrowser": "^3.0"
},
"require-dev": {
Expand Down
4 changes: 3 additions & 1 deletion src/Codeception/Module/Yii2.php
Expand Up @@ -333,7 +333,9 @@ public function _before(TestInterface $test)

// load fixtures before db transaction
if ($test instanceof \Codeception\Test\Cest) {
$this->loadFixtures($test->getTestClass());
$this->loadFixtures($test->getTestInstance());
} elseif ($test instanceof \Codeception\Test\TestCaseWrapper) {
$this->loadFixtures($test->getTestCase());
} else {
$this->loadFixtures($test);
}
Expand Down

0 comments on commit 338ab4d

Please sign in to comment.