mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
19 lines
418 B
PHP
19 lines
418 B
PHP
|
<?
|
||
|
|
||
|
class SubsiteAdminTest extends SapphireTest {
|
||
|
static $fixture_file = 'subsites/tests/SubsiteTest.yml';
|
||
|
|
||
|
/**
|
||
|
* Test that the template list is properly generated.
|
||
|
*/
|
||
|
function testTemplateList() {
|
||
|
$cont = new SubsiteAdmin();
|
||
|
$templates = $cont->getIntranetTemplates();
|
||
|
|
||
|
$templateIDs = $this->allFixtureIDs('Subsite_Template');
|
||
|
$this->assertTrue($templates->onlyContainsIDs($templateIDs));
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|