diff --git a/tests/php/SiteTreeSubsitesTest.php b/tests/php/SiteTreeSubsitesTest.php index bd3dc7c..f4d6b57 100644 --- a/tests/php/SiteTreeSubsitesTest.php +++ b/tests/php/SiteTreeSubsitesTest.php @@ -252,7 +252,7 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest { $this->logInAs('editor'); - $cmsmain = new CMSMain(); + $cmsmain = CMSMain::create(); $s1 = $this->objFromFixture(Subsite::class, 'domaintest1'); $s2 = $this->objFromFixture(Subsite::class, 'domaintest2');