Skip to content

Commit

Permalink
Fixed failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 15, 2012
1 parent cfaa1ee commit f574e96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/TestSuite/ControllerTestCase.php
Expand Up @@ -23,6 +23,7 @@
App::uses('CakeRequest', 'Network');
App::uses('CakeResponse', 'Network');
App::uses('Helper', 'View');
App::uses('CakeEvent', 'Event');

/**
* ControllerTestDispatcher class
Expand Down Expand Up @@ -242,7 +243,7 @@ protected function _testAction($url = '', $options = array()) {
}
}
$Dispatch->loadRoutes = $this->loadRoutes;
$request = $Dispatch->parseParams($request);
$Dispatch->parseParams(new CakeEvent('ControllerTestCase', $Dispatch, array('request' => $request)));
if (!isset($request->params['controller'])) {
$this->headers = Router::currentRoute()->response->header();
return;
Expand Down

0 comments on commit f574e96

Please sign in to comment.