Skip to content

Commit 1b858a2

Browse files
authored
Fix warning in grabFixture() when _fixtures is empty (#70)
1 parent af5fded commit 1b858a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Codeception/Module/Yii2.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@ public function haveFixtures($fixtures)
510510
*/
511511
public function grabFixtures()
512512
{
513+
if (!$this->loadedFixtures) {
514+
return [];
515+
}
516+
513517
return call_user_func_array(
514518
'array_merge',
515519
array_map( // merge all fixtures from all fixture stores

0 commit comments

Comments
 (0)