Refactoring App::build() so it looks more readable

This commit is contained in:
Yosuke Basuke Suzuki 2011-10-06 10:47:26 +09:00 committed by Jose Lorenzo Rodriguez
parent 0a70963a74
commit 0b6c93cf82
2 changed files with 94 additions and 88 deletions

View file

@ -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');