mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Correcting use of CONSOLE_LIBS to refer to template files
This commit is contained in:
parent
d54369e29e
commit
bbc2562d3f
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ class TemplateTaskTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
**/
|
**/
|
||||||
function testGetThemePath() {
|
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->templatePaths = array('default' => $defaultTheme);
|
||||||
$this->Task->expectCallCount('in', 1);
|
$this->Task->expectCallCount('in', 1);
|
||||||
|
|
||||||
|
|
|
@ -620,7 +620,7 @@ class HtmlTestManager extends TestManager {
|
||||||
}
|
}
|
||||||
if (function_exists('caketestsgetreporter')) {
|
if (function_exists('caketestsgetreporter')) {
|
||||||
echo "You need a new test.php. \n";
|
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();
|
exit();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue