Skip to content

Commit

Permalink
Merge pull request #773 from ajoneil/fixtures-fix
Browse files Browse the repository at this point in the history
BUGFIX: Fix loading of fixtures not specified in $fixtures array
  • Loading branch information
halkyon committed Sep 5, 2012
2 parents fd30274 + 3fd4f7e commit 19a7d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/SapphireTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ function loadFixture($fixtureFile) {
$fixtureContent = $parser->load(Director::baseFolder().'/'.$fixtureFile);

$fixture = new YamlFixture($fixtureFile);
$fixture->saveIntoDatabase();
$fixture->saveIntoDatabase($this->model);
$this->fixtures[] = $fixture;
}

Expand Down

0 comments on commit 19a7d31

Please sign in to comment.