mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Cannot use php 5.4+ array syntax for 2.x.
This commit is contained in:
parent
f23d811ff5
commit
68572d8046
1 changed files with 2 additions and 2 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue