mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #354 from dhensby/pulls/live-test
FIX Versioned regressions
This commit is contained in:
commit
c7425ef23e
@ -11,10 +11,19 @@ use SilverStripe\Subsites\Model\Subsite;
|
|||||||
class SubsiteAdminFunctionalTest extends FunctionalTest
|
class SubsiteAdminFunctionalTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
protected static $fixture_file = 'SubsiteTest.yml';
|
protected static $fixture_file = 'SubsiteTest.yml';
|
||||||
protected static $use_draft_site = true;
|
|
||||||
|
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
protected function setUp()
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
// Ensure all pages are published
|
||||||
|
/** @var Page $page */
|
||||||
|
foreach (Page::get() as $page) {
|
||||||
|
$page->publishSingle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper: FunctionalTest is only able to follow redirection once, we want to go all the way.
|
* Helper: FunctionalTest is only able to follow redirection once, we want to go all the way.
|
||||||
* @param string $url
|
* @param string $url
|
||||||
|
Loading…
Reference in New Issue
Block a user