From 68572d8046ff3f1ef4d1937a5c155b3f53c6b76c Mon Sep 17 00:00:00 2001 From: ADmad Date: Sat, 26 Apr 2014 17:29:09 +0530 Subject: [PATCH] Cannot use php 5.4+ array syntax for 2.x. --- .../Test/Case/Controller/Component/SecurityComponentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index 0243fa90b..055a8bc8e 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -142,7 +142,7 @@ class SecurityComponentTest extends CakeTestCase { public function setUp() { parent::setUp(); - $request = $this->getMock('CakeRequest', ['here'], ['posts/index', false]); + $request = $this->getMock('CakeRequest', array('here'), array('posts/index', false)); $request->addParams(array('controller' => 'posts', 'action' => 'index')); $request->expects($this->any()) ->method('here') @@ -794,7 +794,7 @@ class SecurityComponentTest extends CakeTestCase { $unlocked = 'Model.username'; $fields = array('Model.hidden', 'Model.password'); $fields = urlencode(Security::hash( - '/posts/index' . + '/posts/index' . serialize($fields) . $unlocked . Configure::read('Security.salt'))