Correct array syntax.

This commit is contained in:
euromark 2014-12-23 03:29:52 +01:00
parent 515302528d
commit 5af24bdb31

View file

@ -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);
}