FIX wrongly named themes after themestack API change (#1548)

This commit is contained in:
Hamish Friedlander 2016-07-15 17:13:53 +12:00 committed by Sam Minnée
parent 7e5f0087b8
commit 0f950800ef
6 changed files with 1 additions and 2 deletions

View File

@ -183,8 +183,7 @@ class ContentControllerTest extends FunctionalTest {
$controller = new ContentController($page); $controller = new ContentController($page);
$viewer = $controller->getViewer('test'); $viewer = $controller->getViewer('test');
$templateList = array('ContentControllerTestPage_test', 'Page'); $templateList = array('ContentControllerTestPage_test', 'Page');
$expected = SS_TemplateLoader::instance()->findTemplates($templateList, 'controllertest'); $self->assertEquals(dirname(__FILE__).'/themes/controllertest/templates/ContentControllerTestPage_test.ss', $viewer->templates()['main']);
$self->assertEquals($expected, $viewer->templates());
}); });
} }