mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX Versioned regressions
This commit is contained in:
parent
0fcde6c0bb
commit
67bb7e0028
@ -11,10 +11,19 @@ use SilverStripe\Subsites\Model\Subsite;
|
||||
class SubsiteAdminFunctionalTest extends FunctionalTest
|
||||
{
|
||||
protected static $fixture_file = 'SubsiteTest.yml';
|
||||
protected static $use_draft_site = true;
|
||||
|
||||
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.
|
||||
* @param string $url
|
||||
|
Loading…
Reference in New Issue
Block a user