mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixed failing test case
This commit is contained in:
parent
cfaa1ee37c
commit
f574e9644d
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ App::uses('Router', 'Routing');
|
||||||
App::uses('CakeRequest', 'Network');
|
App::uses('CakeRequest', 'Network');
|
||||||
App::uses('CakeResponse', 'Network');
|
App::uses('CakeResponse', 'Network');
|
||||||
App::uses('Helper', 'View');
|
App::uses('Helper', 'View');
|
||||||
|
App::uses('CakeEvent', 'Event');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ControllerTestDispatcher class
|
* ControllerTestDispatcher class
|
||||||
|
@ -242,7 +243,7 @@ abstract class ControllerTestCase extends CakeTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$Dispatch->loadRoutes = $this->loadRoutes;
|
$Dispatch->loadRoutes = $this->loadRoutes;
|
||||||
$request = $Dispatch->parseParams($request);
|
$Dispatch->parseParams(new CakeEvent('ControllerTestCase', $Dispatch, array('request' => $request)));
|
||||||
if (!isset($request->params['controller'])) {
|
if (!isset($request->params['controller'])) {
|
||||||
$this->headers = Router::currentRoute()->response->header();
|
$this->headers = Router::currentRoute()->response->header();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue