mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correct array syntax.
This commit is contained in:
parent
515302528d
commit
5af24bdb31
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ class ConfigureTest extends CakeTestCase {
|
|||
*/
|
||||
public function testConsume() {
|
||||
$this->assertNull(Configure::consume('DoesNotExist'), 'Should be null on empty value');
|
||||
Configure::write('Test', ['key' => 'value', 'key2' => 'value2']);
|
||||
Configure::write('Test', array('key' => 'value', 'key2' => 'value2'));
|
||||
|
||||
$result = Configure::consume('Test.key');
|
||||
$this->assertEquals('value', $result);
|
||||
|
@ -164,7 +164,7 @@ class ConfigureTest extends CakeTestCase {
|
|||
$this->assertEquals('value2', $result, 'Other values should remain.');
|
||||
|
||||
$result = Configure::consume('Test');
|
||||
$expected = ['key2' => 'value2'];
|
||||
$expected = array('key2' => 'value2');
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue