From 0f950800ef7009806e241914becf16157879000d Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Fri, 15 Jul 2016 17:13:53 +1200 Subject: [PATCH] FIX wrongly named themes after themestack API change (#1548) --- tests/controller/ContentControllerTest.php | 3 +-- .../ContentControllerTestPageWithoutController.ss | 0 .../{ => templates}/ContentControllerTestPage_test.ss | 0 .../themes/controllertest/{ => templates}/Controller.ss | 0 .../themes/controllertest/{ => templates}/Layout/Page.ss | 0 tests/controller/themes/controllertest/{ => templates}/Page.ss | 0 6 files changed, 1 insertion(+), 2 deletions(-) rename tests/controller/themes/controllertest/{ => templates}/ContentControllerTestPageWithoutController.ss (100%) rename tests/controller/themes/controllertest/{ => templates}/ContentControllerTestPage_test.ss (100%) rename tests/controller/themes/controllertest/{ => templates}/Controller.ss (100%) rename tests/controller/themes/controllertest/{ => templates}/Layout/Page.ss (100%) rename tests/controller/themes/controllertest/{ => templates}/Page.ss (100%) diff --git a/tests/controller/ContentControllerTest.php b/tests/controller/ContentControllerTest.php index 8da1bee5..5640efdf 100755 --- a/tests/controller/ContentControllerTest.php +++ b/tests/controller/ContentControllerTest.php @@ -183,8 +183,7 @@ class ContentControllerTest extends FunctionalTest { $controller = new ContentController($page); $viewer = $controller->getViewer('test'); $templateList = array('ContentControllerTestPage_test', 'Page'); - $expected = SS_TemplateLoader::instance()->findTemplates($templateList, 'controllertest'); - $self->assertEquals($expected, $viewer->templates()); + $self->assertEquals(dirname(__FILE__).'/themes/controllertest/templates/ContentControllerTestPage_test.ss', $viewer->templates()['main']); }); } diff --git a/tests/controller/themes/controllertest/ContentControllerTestPageWithoutController.ss b/tests/controller/themes/controllertest/templates/ContentControllerTestPageWithoutController.ss similarity index 100% rename from tests/controller/themes/controllertest/ContentControllerTestPageWithoutController.ss rename to tests/controller/themes/controllertest/templates/ContentControllerTestPageWithoutController.ss diff --git a/tests/controller/themes/controllertest/ContentControllerTestPage_test.ss b/tests/controller/themes/controllertest/templates/ContentControllerTestPage_test.ss similarity index 100% rename from tests/controller/themes/controllertest/ContentControllerTestPage_test.ss rename to tests/controller/themes/controllertest/templates/ContentControllerTestPage_test.ss diff --git a/tests/controller/themes/controllertest/Controller.ss b/tests/controller/themes/controllertest/templates/Controller.ss similarity index 100% rename from tests/controller/themes/controllertest/Controller.ss rename to tests/controller/themes/controllertest/templates/Controller.ss diff --git a/tests/controller/themes/controllertest/Layout/Page.ss b/tests/controller/themes/controllertest/templates/Layout/Page.ss similarity index 100% rename from tests/controller/themes/controllertest/Layout/Page.ss rename to tests/controller/themes/controllertest/templates/Layout/Page.ss diff --git a/tests/controller/themes/controllertest/Page.ss b/tests/controller/themes/controllertest/templates/Page.ss similarity index 100% rename from tests/controller/themes/controllertest/Page.ss rename to tests/controller/themes/controllertest/templates/Page.ss