Add fixtureFactory prop assignment back with comment indicating purpose

This commit is contained in:
Robbie Averill 2018-06-15 13:55:58 +12:00
parent cebbc580ef
commit 985c2b67ec
1 changed files with 5 additions and 0 deletions

View File

@ -283,6 +283,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly
$fixtureFiles = $this->getFixturePaths();
if ($this->shouldSetupDatabaseForCurrentTest($fixtureFiles)) {
// Assign fixture factory to deprecated prop in case old tests use it over the getter
/** @var FixtureTestState $fixtureState */
$fixtureState = static::$state->getStateByName('fixtures');
$this->fixtureFactory = $fixtureState->getFixtureFactory(static::class);
$this->logInWithPermission('ADMIN');
}