Skip to content

Commit 1c25a08

Browse files
committed
Add "Default" group to fixtures that have no group
1 parent 948f8b5 commit 1c25a08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Loader/SymfonyFixturesLoader.php

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function addFixture(FixtureInterface $fixture) : void
5555

5656
if ($fixture instanceof FixtureGroupInterface) {
5757
$this->addGroupsFixtureMapping($class, $fixture::getGroups());
58+
} else {
59+
$this->addGroupsFixtureMapping($class, ['Default']);
5860
}
5961

6062
parent::addFixture($fixture);

0 commit comments

Comments
 (0)