From 5e6926f01b9b1ea703aa5544a9c696b00ef0358f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Tue, 21 Dec 2010 22:13:22 -0430 Subject: [PATCH] Fixing some helper and views related tests --- lib/Cake/tests/cases/libs/view/helper.test.php | 4 ++-- lib/Cake/tests/cases/libs/view/helpers/form.test.php | 1 + .../plugins/test_plugin/views/helpers/other_helper.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Cake/tests/cases/libs/view/helper.test.php b/lib/Cake/tests/cases/libs/view/helper.test.php index 063ae9fc9..77baabf25 100644 --- a/lib/Cake/tests/cases/libs/view/helper.test.php +++ b/lib/Cake/tests/cases/libs/view/helper.test.php @@ -554,7 +554,7 @@ class HelperTest extends CakeTestCase { Configure::write('Asset.timestamp', 'force'); App::build(array( 'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS), - 'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views' . DS), + 'View' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views' . DS), )); $result = $this->Helper->assetTimestamp('/test_plugin/css/test_plugin_asset.css'); @@ -793,7 +793,7 @@ class HelperTest extends CakeTestCase { $this->Helper->theme = 'test_theme'; App::build(array( - 'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views'. DS) + 'View' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); $result = $this->Helper->webroot('/img/cake.power.gif'); diff --git a/lib/Cake/tests/cases/libs/view/helpers/form.test.php b/lib/Cake/tests/cases/libs/view/helpers/form.test.php index 2498a8f79..a6a6c7b46 100644 --- a/lib/Cake/tests/cases/libs/view/helpers/form.test.php +++ b/lib/Cake/tests/cases/libs/view/helpers/form.test.php @@ -25,6 +25,7 @@ App::uses('Security', 'Utility'); App::uses('CakeRequest', 'Network'); App::uses('HtmlHelper', 'View/Helper'); App::uses('FormHelper', 'View/Helper'); +App::uses('Router', 'Routing'); /** * ContactTestController class diff --git a/lib/Cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php b/lib/Cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php index 07b109f6b..b8f53ee5a 100644 --- a/lib/Cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php +++ b/lib/Cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php @@ -17,4 +17,5 @@ * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('AppHelper', 'View/Helper'); class OtherHelperHelper extends AppHelper {}