From 8e27cf992f24bb6aaefc1e905e98d32f78938431 Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 15 May 2011 18:49:38 +0200 Subject: [PATCH] correct a few missing constant replacements --- lib/Cake/Core/App.php | 2 +- .../Case/Console/Command/SchemaShellTest.php | 2 +- .../Test/Case/Console/TaskCollectionTest.php | 2 +- .../Case/Model/Datasource/CakeSessionTest.php | 4 +- lib/Cake/Test/Case/View/ViewTest.php | 6 +- .../test_app/View/posts/test_nocache_tags.ctp | 142 ------------------ 6 files changed, 8 insertions(+), 150 deletions(-) delete mode 100644 lib/Cake/tests/test_app/View/posts/test_nocache_tags.ctp diff --git a/lib/Cake/Core/App.php b/lib/Cake/Core/App.php index 423271b25..0ddc49257 100644 --- a/lib/Cake/Core/App.php +++ b/lib/Cake/Core/App.php @@ -411,7 +411,7 @@ class App { * @return string full path to package */ public static function core($type) { - return array(LIBS . str_replace('/', DS, $type) . DS); + return array(CAKE . str_replace('/', DS, $type) . DS); } /** diff --git a/lib/Cake/Test/Case/Console/Command/SchemaShellTest.php b/lib/Cake/Test/Case/Console/Command/SchemaShellTest.php index 6455b3f01..10804ae5d 100644 --- a/lib/Cake/Test/Case/Console/Command/SchemaShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/SchemaShellTest.php @@ -470,7 +470,7 @@ class SchemaShellTest extends CakeTestCase { */ public function testPluginDotSyntaxWithCreate() { App::build(array( - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) )); CakePlugin::load('TestPlugin'); $this->Shell->params = array( diff --git a/lib/Cake/Test/Case/Console/TaskCollectionTest.php b/lib/Cake/Test/Case/Console/TaskCollectionTest.php index 53b12b16c..1d8d9961d 100644 --- a/lib/Cake/Test/Case/Console/TaskCollectionTest.php +++ b/lib/Cake/Test/Case/Console/TaskCollectionTest.php @@ -88,7 +88,7 @@ class TaskCollectionTest extends CakeTestCase { $dispatcher = $this->getMock('ShellDispatcher', array(), array(), '', false); $shell = $this->getMock('Shell', array(), array(), '', false); App::build(array( - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) )); CakePlugin::load('TestPlugin'); $this->Tasks = new TaskCollection($shell, $dispatcher); diff --git a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php index b0a9ff44f..b7cb1195b 100644 --- a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php @@ -530,7 +530,7 @@ class CakeSessionTest extends CakeTestCase { 'Model/Datasource/Session' => array( CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS . 'Datasource' . DS . 'Session' . DS ), - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) ), true); Configure::write('Session', array( 'defaults' => 'cake', @@ -551,7 +551,7 @@ class CakeSessionTest extends CakeTestCase { */ function testUsingPluginHandler() { App::build(array( - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) ), true); Configure::write('Session', array( diff --git a/lib/Cake/Test/Case/View/ViewTest.php b/lib/Cake/Test/Case/View/ViewTest.php index 0c9a94680..ab9bb6455 100644 --- a/lib/Cake/Test/Case/View/ViewTest.php +++ b/lib/Cake/Test/Case/View/ViewTest.php @@ -195,7 +195,7 @@ class ViewTest extends CakeTestCase { $this->PostsController->index(); $this->View = new View($this->PostsController); App::build(array( - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), 'View' => array( CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS ) @@ -283,8 +283,8 @@ class ViewTest extends CakeTestCase { $View = new TestView($this->Controller); App::build(array( - 'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), - 'View' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'View'. DS) + 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), + 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS) )); $pluginPath = CakePlugin::path('TestPlugin'); diff --git a/lib/Cake/tests/test_app/View/posts/test_nocache_tags.ctp b/lib/Cake/tests/test_app/View/posts/test_nocache_tags.ctp deleted file mode 100644 index 5cd1e98e0..000000000 --- a/lib/Cake/tests/test_app/View/posts/test_nocache_tags.ctp +++ /dev/null @@ -1,142 +0,0 @@ - -

- - - - - -

-

- - ' . $settings['engine']; - echo __d('cake', ' is being used to cache, to change this edit config/core.php '); - echo '

'; - - echo 'Settings: '; - - else: - echo __d('cake', 'NOT working.'); - echo '
'; - if (is_writable(TMP)): - echo __d('cake', 'Edit: config/core.php to insure you have the newset version of this file and the variable $cakeCache set properly'); - endif; - endif; - ?> - -

-

- - '; - echo __d('cake', 'Rename config/database.php.default to config/database.php'); - endif; - ?> - -

- -

- - isConnected()): - __d('cake', ' is able to '); - else: - __d('cake', ' is NOT able to '); - endif; - __d('cake', 'connect to the database.'); - ?> - -

- -

- -

-

-
-
-
- -

-

-

-
-
- -

-

-

- -

-

- -

-