Correcting use of CONSOLE_LIBS to refer to template files

This commit is contained in:
AD7six 2009-07-29 10:17:06 +02:00
parent d54369e29e
commit bbc2562d3f
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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 {