Permalink
Browse files

Resetting Router state before running Dispatcher test, fixes #5895

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7932 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
1 parent 870c4e8 commit 855741c2f47398660f3ac85fac22d6b94ab051c4 @nateabele nateabele committed Dec 17, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/cases/dispatcher.test.php
@@ -601,6 +601,10 @@ function testParseParamsWithMixedOneToManyZerosInEachSectionOfUrl() {
* @return void
*/
function testQueryStringOnRoot() {
+ Router::reload();
+ Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
+ Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
+
$_GET = array('coffee' => 'life', 'sleep' => 'sissies');
$Dispatcher =& new Dispatcher();
$uri = 'posts/home/?coffee=life&sleep=sissies';

0 comments on commit 855741c

Please sign in to comment.