FIX Versioned regressions

This commit is contained in:
Daniel Hensby 2018-03-26 13:51:20 +01:00
parent 0fcde6c0bb
commit 67bb7e0028
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
1 changed files with 10 additions and 1 deletions

View File

@ -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