From 67bb7e0028f38197808ebefb2c96da60cb9bb9f8 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Mon, 26 Mar 2018 13:51:20 +0100 Subject: [PATCH] FIX Versioned regressions --- tests/php/SubsiteAdminFunctionalTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/php/SubsiteAdminFunctionalTest.php b/tests/php/SubsiteAdminFunctionalTest.php index e8876c5..029ed26 100644 --- a/tests/php/SubsiteAdminFunctionalTest.php +++ b/tests/php/SubsiteAdminFunctionalTest.php @@ -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