FIX: params isn't defined in this context, may be carry over from PHPUnit sessions. Changing context to $state to match other env values.

This commit is contained in:
Ben Manu 2015-12-08 11:10:19 +13:00 committed by Ingo Schommer
parent 140c31b34f
commit 12552dc808

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);
}