mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add fixtureFactory prop assignment back with comment indicating purpose
This commit is contained in:
parent
cebbc580ef
commit
985c2b67ec
@ -283,6 +283,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly
|
|||||||
$fixtureFiles = $this->getFixturePaths();
|
$fixtureFiles = $this->getFixturePaths();
|
||||||
|
|
||||||
if ($this->shouldSetupDatabaseForCurrentTest($fixtureFiles)) {
|
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');
|
$this->logInWithPermission('ADMIN');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user