mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
parent
ea00ac3520
commit
e83435b2b6
@ -392,11 +392,20 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest
|
|||||||
$controller = ModelAsController::controller_for($pageWithTheme);
|
$controller = ModelAsController::controller_for($pageWithTheme);
|
||||||
SiteTree::singleton()->extend('contentcontrollerInit', $controller);
|
SiteTree::singleton()->extend('contentcontrollerInit', $controller);
|
||||||
$subsiteTheme = $pageWithTheme->Subsite()->Theme;
|
$subsiteTheme = $pageWithTheme->Subsite()->Theme;
|
||||||
|
|
||||||
|
$allThemes = SSViewer::get_themes();
|
||||||
|
|
||||||
$this->assertContains(
|
$this->assertContains(
|
||||||
$subsiteTheme,
|
$subsiteTheme,
|
||||||
SSViewer::get_themes(),
|
$allThemes,
|
||||||
'Themes should be modified when Subsite has theme defined'
|
'Themes should be modified when Subsite has theme defined'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->assertEquals(
|
||||||
|
$subsiteTheme,
|
||||||
|
array_shift($allThemes),
|
||||||
|
'Subsite theme should be prepeded to theme list'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideAlternateAbsoluteLink()
|
public function provideAlternateAbsoluteLink()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user