mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 12:32:42 +00:00
Refactoring App::build() so it looks more readable
This commit is contained in:
parent
0a70963a74
commit
0b6c93cf82
2 changed files with 94 additions and 88 deletions
|
@ -345,7 +345,7 @@ class AppTest extends CakeTestCase {
|
|||
$path = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS;
|
||||
App::build(array(
|
||||
'plugins' => array($path)
|
||||
), true);
|
||||
), App::RESET);
|
||||
mkdir($path . '.svn');
|
||||
$result = App::objects('plugin', null, false);
|
||||
rmdir($path . '.svn');
|
||||
|
@ -362,7 +362,7 @@ class AppTest extends CakeTestCase {
|
|||
App::build(array(
|
||||
'Model' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS),
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
), true);
|
||||
), App::RESET);
|
||||
CakePlugin::loadAll();
|
||||
|
||||
$result = App::objects('TestPlugin.model');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue