Skip to content

Commit

Permalink
Fix notice error when a missing action error is hit.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 30, 2012
1 parent 7b93918 commit 4541510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/ControllerTestCase.php
Expand Up @@ -246,7 +246,7 @@ protected function _testAction($url = '', $options = array()) {
}
$Dispatch->loadRoutes = $this->loadRoutes;
$Dispatch->parseParams(new CakeEvent('ControllerTestCase', $Dispatch, array('request' => $request)));
if (!isset($request->params['controller'])) {
if (!isset($request->params['controller']) && Router::currentRoute()) {
$this->headers = Router::currentRoute()->response->header();
return;
}
Expand Down

0 comments on commit 4541510

Please sign in to comment.