Fixing some helper and views related tests

This commit is contained in:
José Lorenzo Rodríguez 2010-12-21 22:13:22 -04:30
parent 57e6ac7eb7
commit 5e6926f01b
3 changed files with 4 additions and 2 deletions

View file

@ -554,7 +554,7 @@ class HelperTest extends CakeTestCase {
Configure::write('Asset.timestamp', 'force'); Configure::write('Asset.timestamp', 'force');
App::build(array( App::build(array(
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS), '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'); $result = $this->Helper->assetTimestamp('/test_plugin/css/test_plugin_asset.css');
@ -793,7 +793,7 @@ class HelperTest extends CakeTestCase {
$this->Helper->theme = 'test_theme'; $this->Helper->theme = 'test_theme';
App::build(array( 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'); $result = $this->Helper->webroot('/img/cake.power.gif');

View file

@ -25,6 +25,7 @@ App::uses('Security', 'Utility');
App::uses('CakeRequest', 'Network'); App::uses('CakeRequest', 'Network');
App::uses('HtmlHelper', 'View/Helper'); App::uses('HtmlHelper', 'View/Helper');
App::uses('FormHelper', 'View/Helper'); App::uses('FormHelper', 'View/Helper');
App::uses('Router', 'Routing');
/** /**
* ContactTestController class * ContactTestController class

View file

@ -17,4 +17,5 @@
* @since CakePHP(tm) v 1.2.0.4206 * @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('AppHelper', 'View/Helper');
class OtherHelperHelper extends AppHelper {} class OtherHelperHelper extends AppHelper {}