mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fixing failing tests caused by missing index in Security component testcase.
This commit is contained in:
parent
0baaf6801b
commit
8e97a5ee2d
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ class SecurityComponentTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function startTest() {
|
||||
$this->Controller = new SecurityTestController(new CakeRequest(null, false));
|
||||
$request = new CakeRequest('posts/index', false);
|
||||
$request->addParams(array('controller' => 'posts', 'action' => 'index'));
|
||||
$this->Controller = new SecurityTestController($request);
|
||||
$this->Controller->Components->init($this->Controller);
|
||||
$this->Controller->Security = $this->Controller->TestSecurity;
|
||||
$this->Controller->Security->blackHoleCallback = 'fail';
|
||||
|
|
Loading…
Add table
Reference in a new issue