mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge pull request #8500 from cakephp/issue-8480-requests
Instead of wiping the Router, just clear requests.
This commit is contained in:
commit
24df4ddf02
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue