Changing syntax to reflect updated api's

This commit is contained in:
mark_story 2009-09-20 18:38:26 -04:00
parent c1056676ec
commit 3c21fa32ba

View file

@ -1088,11 +1088,12 @@ class RouterTest extends CakeTestCase {
$this->assertEqual($result, $expected);
Configure::write('Routing.admin', 'admin');
$paths = Configure::read('pluginPaths');
Configure::write('pluginPaths', array(
$paths = App::path('plugins');
App::build(array(
'plugins' => array(
TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS
));
Configure::write('__objects.plugin', array('test_plugin'));
)
), false);
Router::reload();
Router::setRequestInfo(array(
@ -1107,7 +1108,7 @@ class RouterTest extends CakeTestCase {
$expected = '/admin/test_plugin';
$this->assertEqual($result, $expected);
Configure::write('pluginPaths', $paths);
App::build(array('plugins' => $paths));
}
/**