Fixed failing test case

This commit is contained in:
Jose Lorenzo Rodriguez 2012-04-15 12:50:27 -04:30
parent cfaa1ee37c
commit f574e9644d

View file

@ -23,6 +23,7 @@ App::uses('Router', 'Routing');
App::uses('CakeRequest', 'Network');
App::uses('CakeResponse', 'Network');
App::uses('Helper', 'View');
App::uses('CakeEvent', 'Event');
/**
* ControllerTestDispatcher class
@ -242,7 +243,7 @@ abstract class ControllerTestCase extends CakeTestCase {
}
}
$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;