From e024b6b43bafa2ba2ce22dc8b8badf80ae3478df Mon Sep 17 00:00:00 2001 From: AD7six Date: Sat, 8 Jan 2011 14:02:05 +0100 Subject: [PATCH] only check the default template path is correct this prevents a misleading error if you've more than one bake template installed --- cake/tests/cases/console/shells/tasks/template.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/console/shells/tasks/template.test.php b/cake/tests/cases/console/shells/tasks/template.test.php index 0085d4f75..d33006cac 100644 --- a/cake/tests/cases/console/shells/tasks/template.test.php +++ b/cake/tests/cases/console/shells/tasks/template.test.php @@ -88,7 +88,7 @@ class TemplateTaskTest extends CakeTestCase { public function testFindingInstalledThemesForBake() { $consoleLibs = CAKE . 'console' . DS; $this->Task->initialize(); - $this->assertEqual($this->Task->templatePaths, array('default' => $consoleLibs . 'templates' . DS . 'default' . DS)); + $this->assertEqual($this->Task->templatePaths['default'], $consoleLibs . 'templates' . DS . 'default' . DS); } /** @@ -161,4 +161,4 @@ class TemplateTaskTest extends CakeTestCase { $result = $this->Task->generate('classes', 'fixture'); $this->assertPattern('/ArticleFixture extends CakeTestFixture/', $result); } -} +} \ No newline at end of file