Skip to content

Commit

Permalink
cache fixtureId
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad committed May 30, 2019
1 parent 531809a commit f1c42aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Knp/FriendlyContexts/Alice/Fixtures/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function __construct($locale, ProviderResolver $providers)
public function getCache()
{
$cache = [];
foreach ($this->fixtureSet->getFixtures() as $fixture) {
$spec = [];
foreach ($this->fixtureSet->getFixtures() as $fixtureId => $fixture) {
$spec = [$fixtureId];
foreach ($fixture->getSpecs()->getProperties()->getIterator() as $property) {
$spec[] = $property->getValue();
}
Expand Down

0 comments on commit f1c42aa

Please sign in to comment.