Skip to content

Commit

Permalink
Allows use InitDbFixture feature (#4201)
Browse files Browse the repository at this point in the history
* Allows use `InitDbFixture` feature

* Fixes code style
  • Loading branch information
leandrogehlen authored and DavertMik committed May 8, 2017
1 parent cbd767a commit ac1ae26
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Codeception/Lib/Connector/Yii2/FixturesStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Codeception\Lib\Connector\Yii2;

use yii\test\FixtureTrait;
use yii\test\InitDbFixture;

class FixturesStore
{
Expand All @@ -24,4 +25,11 @@ public function fixtures()
{
return $this->data;
}

public function globalFixtures()
{
return [
InitDbFixture::className()
];
}
}

0 comments on commit ac1ae26

Please sign in to comment.