Merge pull request #8500 from cakephp/issue-8480-requests

Instead of wiping the Router, just clear requests.
This commit is contained in:
José Lorenzo Rodríguez 2016-03-20 18:34:27 +01:00
commit 24df4ddf02

View file

@ -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;