From 8398a361cddcf749202be39fbf1305907805c7ef Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 15 Mar 2018 15:56:10 +1300 Subject: [PATCH] Use injected CMSMain to prevent unit test error missing dependencies --- tests/php/SiteTreeSubsitesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/SiteTreeSubsitesTest.php b/tests/php/SiteTreeSubsitesTest.php index bd3dc7cc..f4d6b579 100644 --- a/tests/php/SiteTreeSubsitesTest.php +++ b/tests/php/SiteTreeSubsitesTest.php @@ -252,7 +252,7 @@ public function testPageTypesBlacklistInCMSMain() { $this->logInAs('editor'); - $cmsmain = new CMSMain(); + $cmsmain = CMSMain::create(); $s1 = $this->objFromFixture(Subsite::class, 'domaintest1'); $s2 = $this->objFromFixture(Subsite::class, 'domaintest2');