mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Updating test to use Config instead of static setting
This commit is contained in:
parent
2812f6311c
commit
c9d5627e9f
@ -170,7 +170,7 @@ class SubsitesVirtualPageTest extends BaseSubsiteTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testUnpublishingParentPageUnpublishesSubsiteVirtualPages() {
|
function testUnpublishingParentPageUnpublishesSubsiteVirtualPages() {
|
||||||
StaticPublisher::$disable_realtime = true;
|
Config::inst()->update('StaticPublisher', 'disable_realtime', true);
|
||||||
|
|
||||||
// Go to main site, get parent page
|
// Go to main site, get parent page
|
||||||
$subsite = $this->objFromFixture('Subsite', 'main');
|
$subsite = $this->objFromFixture('Subsite', 'main');
|
||||||
@ -257,4 +257,4 @@ class SubsitesVirtualPageTest extends BaseSubsiteTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user