Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix failing AuthComponent test
  • Loading branch information
shama committed Feb 16, 2012
1 parent a9c279a commit 9fdc17e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -853,7 +853,9 @@ public function testLoginRedirect() {
$_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);
Expand Down

0 comments on commit 9fdc17e

Please sign in to comment.