diff --git a/cake/tests/cases/console/libs/tasks/template.test.php b/cake/tests/cases/console/libs/tasks/template.test.php index 1f8b23cb7..ca98599bc 100644 --- a/cake/tests/cases/console/libs/tasks/template.test.php +++ b/cake/tests/cases/console/libs/tasks/template.test.php @@ -113,7 +113,7 @@ class TemplateTaskTest extends CakeTestCase { * @return void **/ function testGetThemePath() { - $defaultTheme = CAKE_CORE_INCLUDE_PATH . DS . CONSOLE_LIBS . 'templates' . DS . 'default' .DS; + $defaultTheme = CAKE_CORE_INCLUDE_PATH . DS . dirname(CONSOLE_LIBS) . 'templates' . DS . 'default' .DS; $this->Task->templatePaths = array('default' => $defaultTheme); $this->Task->expectCallCount('in', 1); diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index a876c8e23..3e606b45b 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -620,7 +620,7 @@ class HtmlTestManager extends TestManager { } if (function_exists('caketestsgetreporter')) { echo "You need a new test.php. \n"; - echo "Try this one: " . CONSOLE_LIBS . "templates" . DS . "skel" . DS . "webroot" . DS . "test.php"; + echo "Try this one: " . dirname(CONSOLE_LIBS) . "templates" . DS . "skel" . DS . "webroot" . DS . "test.php"; exit(); } else {