From 1411e9495e2cdcfb16ddc14748bf713b430cc17e Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 27 Nov 2010 12:47:19 -0800 Subject: [PATCH] Fixed failing test due to missing CakeRequest class --- cake/tests/cases/libs/controller/controller.test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/controller/controller.test.php b/cake/tests/cases/libs/controller/controller.test.php index 8bfcbe0d7..bfd668d41 100644 --- a/cake/tests/cases/libs/controller/controller.test.php +++ b/cake/tests/cases/libs/controller/controller.test.php @@ -757,7 +757,9 @@ class ControllerTest extends CakeTestCase { * @access public */ function testPaginateFieldsDouble(){ - $Controller =& new Controller(); + $request = new CakeRequest('controller_posts/index'); + + $Controller =& new Controller($request); $Controller->uses = array('ControllerPost'); $Controller->request->params['url'] = array(); $Controller->constructClasses();