Merge pull request #354 from dhensby/pulls/live-test

FIX Versioned regressions
This commit is contained in:
Robbie Averill 2018-03-27 07:50:54 +13:00 committed by GitHub
commit c7425ef23e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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