diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index db1919259..020fcfe2c 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -280,7 +280,9 @@ abstract class ControllerTestCase extends CakeTestCase { $this->result = $Dispatch->dispatch($request, $Dispatch->response, $params); // Clear out any stored requests. - Router::reload(); + while (Router::getRequest()) { + Router::popRequest(); + } $this->controller = $Dispatch->testController; $this->vars = $this->controller->viewVars;