From 9fdc17eb1fbc401acbc9bb6bb486e29146b436e9 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Thu, 16 Feb 2012 15:58:42 -0800 Subject: [PATCH] Fix failing AuthComponent test --- lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index f80e8ff81..a72714c6a 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -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);