Skip to content

Commit

Permalink
Add "Default" group to fixtures that have no group
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetik committed Aug 23, 2019
1 parent 948f8b5 commit 1c25a08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Loader/SymfonyFixturesLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function addFixture(FixtureInterface $fixture) : void

if ($fixture instanceof FixtureGroupInterface) {
$this->addGroupsFixtureMapping($class, $fixture::getGroups());
} else {
$this->addGroupsFixtureMapping($class, ['Default']);
}

parent::addFixture($fixture);
Expand Down

0 comments on commit 1c25a08

Please sign in to comment.