mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Use injected CMSMain to prevent unit test error missing dependencies
This commit is contained in:
parent
f8f39c135f
commit
8398a361cd
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user