mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +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
|
* @return void
|
||||||
*/
|
*/
|
||||||
function startTest() {
|
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->Components->init($this->Controller);
|
||||||
$this->Controller->Security = $this->Controller->TestSecurity;
|
$this->Controller->Security = $this->Controller->TestSecurity;
|
||||||
$this->Controller->Security->blackHoleCallback = 'fail';
|
$this->Controller->Security->blackHoleCallback = 'fail';
|
||||||
|
|
Loading…
Add table
Reference in a new issue