| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 6 | private function loadFixture(ObjectManager $manager, FixtureInterface ...$fixtures): void |
|
|
|
|||
| 16 | { |
||
| 17 | 6 | $executor = FixtureExecutorFactory::createManagerExecutor($manager); |
|
| 18 | 6 | $this->fixtureRepository = $executor->getReferenceRepository(); |
|
| 19 | |||
| 20 | 6 | $loader = new Loader(); |
|
| 21 | 6 | array_map([$loader, 'addFixture'], $fixtures); |
|
| 22 | |||
| 23 | 6 | $executor->execute($loader->getFixtures()); |
|
| 24 | 6 | } |
|
| 25 | } |
||
| 26 |