Permalink
Browse files

Changing syntax to reflect updated api's

  • Loading branch information...
1 parent c105667 commit 3c21fa32ba6d5673ad548711ee920872d18a5be2 @markstory markstory committed Sep 20, 2009
Showing with 7 additions and 6 deletions.
  1. +7 −6 cake/tests/cases/libs/router.test.php
@@ -1088,11 +1088,12 @@ function testAdminRouting() {
$this->assertEqual($result, $expected);
Configure::write('Routing.admin', 'admin');
- $paths = Configure::read('pluginPaths');
- Configure::write('pluginPaths', array(
- TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS
- ));
- Configure::write('__objects.plugin', array('test_plugin'));
+ $paths = App::path('plugins');
+ App::build(array(
+ 'plugins' => array(
+ TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS
+ )
+ ), false);
Router::reload();
Router::setRequestInfo(array(
@@ -1107,7 +1108,7 @@ function testAdminRouting() {
$expected = '/admin/test_plugin';
$this->assertEqual($result, $expected);
- Configure::write('pluginPaths', $paths);
+ App::build(array('plugins' => $paths));
}
/**

0 comments on commit 3c21fa3

Please sign in to comment.