Browse Source

Adjusted test. Adding to global set of prefixes is no longer as side affect of configuring some arbitrary prefixed route.

Sam 12 years ago
parent
commit
c822886aa3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Controller/ControllerTest.php

+ 1 - 0
tests/TestCase/Controller/ControllerTest.php

@@ -799,6 +799,7 @@ class ControllerTest extends TestCase {
  * @return void
  */
 	public function testInvokeActionPrefixProtection() {
+		Configure::write('Routing.prefixes', array('admin'));
 		Router::reload();
 		Router::connect('/admin/:controller/:action/*', array('prefix' => 'admin'));