Permalink
Browse files

Solving scope problem after clearing up variables in the default rout…

…es file
  • Loading branch information...
1 parent 959a968 commit 21ff9caac78a29e66ed0f35586c0d961b34e79fa @lorenzo lorenzo committed Jul 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -923,7 +923,7 @@ public function testNoRedirectOn404() {
* @return void
*/
public function testAdminRoute() {
- $prefixes = Configure::read('Routing.prefixes');
+ $pref = Configure::read('Routing.prefixes');
Configure::write('Routing.prefixes', array('admin'));
Router::reload();
require CAKE . 'Config' . DS . 'routes.php';
@@ -943,7 +943,7 @@ public function testAdminRoute() {
$this->Auth->startup($this->Controller);
$this->assertEqual($this->Controller->testUrl, '/admin/auth_test/login');
- Configure::write('Routing.prefixes', $prefixes);
+ Configure::write('Routing.prefixes', $pref);
}
/**

0 comments on commit 21ff9ca

Please sign in to comment.