Skip to content
Permalink
Browse files

Fix failing AuthComponent test

  • Loading branch information...
shama committed Feb 16, 2012
1 parent a9c279a commit 9fdc17eb1fbc401acbc9bb6bb486e29146b436e9
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -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);

0 comments on commit 9fdc17e

Please sign in to comment.
You can’t perform that action at this time.