mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing some helper and views related tests
This commit is contained in:
parent
57e6ac7eb7
commit
5e6926f01b
3 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Reference in a new issue