Skip to content
Permalink
Browse files

Cannot use php 5.4+ array syntax for 2.x.

  • Loading branch information...
ADmad committed Apr 26, 2014
1 parent f23d811 commit 68572d8046ff3f1ef4d1937a5c155b3f53c6b76c
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 @@ public function testValidatePostDisabledFieldsInData() {
$unlocked = 'Model.username';
$fields = array('Model.hidden', 'Model.password');
$fields = urlencode(Security::hash(
'/posts/index' .
'/posts/index' .
serialize($fields) .
$unlocked .
Configure::read('Security.salt'))

2 comments on commit 68572d8

@markstory

This comment has been minimized.

Copy link
Member

markstory replied Apr 26, 2014

Thanks. I totally missed this.

@ADmad

This comment has been minimized.

Copy link
Member Author

ADmad replied Apr 26, 2014

No problem :)

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