Merge pull request #101 from benmanu/pulls/state-yml-fixture

FIX: params isn't defined in this context
This commit is contained in:
Ingo Schommer 2015-12-09 08:58:41 +13:00
commit f41bb0fc53

View File

@ -203,7 +203,7 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
}
// Fixtures
$fixtureFile = (!empty($params['fixture'])) ? $params['fixture'] : null;
$fixtureFile = (!empty($state['fixture'])) ? $state['fixture'] : null;
if($fixtureFile) {
$this->testSessionEnvironment->loadFixtureIntoDb($fixtureFile);
}