Skip to content

Commit

Permalink
Use injected CMSMain to prevent unit test error missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Mar 15, 2018
1 parent f8f39c1 commit 8398a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/SiteTreeSubsitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8398a36

Please sign in to comment.