Skip to content
Permalink
Browse files

Updated test. Setting global config 'Routing.prefixes' is no longer a…

… side affect of setting some prefixed route.
  • Loading branch information...
sam-at-github committed Feb 11, 2014
1 parent e8a23e0 commit 3bb9b64d5ac0eda0f7afa98740701828dec38e2a
Showing with 5 additions and 3 deletions.
  1. +5 −3 tests/TestCase/Routing/RouterTest.php
@@ -1991,11 +1991,13 @@ public function testParsingWithPatternOnAction() {
}
/**
* testParsingWithPrefixes method
* testParsingWithLiteralPrefixes method
*
* @return void
*/
public function testParsingWithPrefixes() {
public function testParsingWithLiteralPrefixes() {
Configure::write('Routing.prefixes', array());
Router::reload();
$adminParams = array('prefix' => 'admin');
Router::connect('/admin/:controller', $adminParams);
Router::connect('/admin/:controller/:action', $adminParams);
@@ -2024,7 +2026,7 @@ public function testParsingWithPrefixes() {
$this->assertEquals($expected, $result);
$result = Router::prefixes();
$expected = array('admin');
$expected = array();
$this->assertEquals($expected, $result);
Router::reload();

0 comments on commit 3bb9b64

Please sign in to comment.
You can’t perform that action at this time.