mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #494 from shama/patch-auth-test
Fix Failing AuthComponent Test
This commit is contained in:
commit
1fa0a930e4
1 changed files with 3 additions and 1 deletions
|
@ -853,7 +853,9 @@ class AuthComponentTest extends CakeTestCase {
|
|||
$_SERVER['HTTP_REFERER'] = 'http://webmail.example.com/view/message';
|
||||
$this->Auth->Session->delete('Auth');
|
||||
$url = '/posts/edit/1';
|
||||
$this->Auth->request = $this->Controller->request = new CakeRequest($url);
|
||||
$request = new CakeRequest($url);
|
||||
$request->query = array();
|
||||
$this->Auth->request = $this->Controller->request = $request;
|
||||
$this->Auth->request->addParams(Router::parse($url));
|
||||
$this->Auth->request->url = $this->Auth->request->here = Router::normalize($url);
|
||||
$this->Auth->initialize($this->Controller);
|
||||
|
|
Loading…
Reference in a new issue