mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
remove LIBS constant
libs always means the Cake lib - so use the CAKE constant
This commit is contained in:
parent
ff2d9e244a
commit
afa8f6b441
67 changed files with 571 additions and 434 deletions
|
@ -172,10 +172,10 @@ class TestHelper extends Helper {
|
|||
/**
|
||||
* expose a method as public
|
||||
*
|
||||
* @param string $options
|
||||
* @param string $exclude
|
||||
* @param string $insertBefore
|
||||
* @param string $insertAfter
|
||||
* @param string $options
|
||||
* @param string $exclude
|
||||
* @param string $insertBefore
|
||||
* @param string $insertAfter
|
||||
* @return void
|
||||
*/
|
||||
function parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
|
@ -518,8 +518,8 @@ class HelperTest extends CakeTestCase {
|
|||
$_timestamp = Configure::read('Asset.timestamp');
|
||||
Configure::write('Asset.timestamp', 'force');
|
||||
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),
|
||||
));
|
||||
CakePlugin::loadAll();
|
||||
|
||||
|
@ -759,7 +759,7 @@ class HelperTest extends CakeTestCase {
|
|||
$this->Helper->theme = 'test_theme';
|
||||
|
||||
App::build(array(
|
||||
'View' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'View'. DS)
|
||||
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS)
|
||||
));
|
||||
|
||||
$result = $this->Helper->webroot('/img/cake.power.gif');
|
||||
|
@ -771,7 +771,7 @@ class HelperTest extends CakeTestCase {
|
|||
$this->assertEqual($result, $expected);
|
||||
|
||||
$webRoot = Configure::read('App.www_root');
|
||||
Configure::write('App.www_root', LIBS . 'Test' . DS . 'test_app' . DS . 'webroot' . DS);
|
||||
Configure::write('App.www_root', CAKE . 'Test' . DS . 'test_app' . DS . 'webroot' . DS);
|
||||
|
||||
$result = $this->Helper->webroot('/img/cake.power.gif');
|
||||
$expected = '/theme/test_theme/img/cake.power.gif';
|
||||
|
@ -799,7 +799,7 @@ class HelperTest extends CakeTestCase {
|
|||
*/
|
||||
function testLazyLoadingHelpers() {
|
||||
App::build(array(
|
||||
'plugins' => array(LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
|
||||
));
|
||||
CakePlugin::loadAll();
|
||||
$Helper = new TestHelper($this->View);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue