Use injected CMSMain to prevent unit test error missing dependencies

This commit is contained in:
Robbie Averill 2018-03-15 15:56:10 +13:00
parent f8f39c135f
commit 8398a361cd

View File

@ -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');