mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
adding more levels to confiure test
This commit is contained in:
parent
38e1954996
commit
7f6c2b6b33
1 changed files with 17 additions and 0 deletions
|
@ -114,6 +114,23 @@ class ConfigureTest extends CakeTestCase {
|
|||
Configure::write('SomeName.someKey', null);
|
||||
$result = Configure::read('SomeName.someKey');
|
||||
$this->assertEqual($result, null);
|
||||
|
||||
$expected = array('One' => array('Two' => array('Three' => array('Four' => array('Five' => 'cool')))));
|
||||
Configure::write('Key', $expected);
|
||||
|
||||
$result = Configure::read('Key');
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
$result = Configure::read('Key.One');
|
||||
$this->assertEqual($expected['One'], $result);
|
||||
|
||||
|
||||
$result = Configure::read('Key.One.Two');
|
||||
$this->assertEqual($expected['One']['Two'], $result);
|
||||
|
||||
$result = Configure::read('Key.One.Two.Three.Four.Five');
|
||||
$this->assertEqual('cool', $result);
|
||||
|
||||
}
|
||||
/**
|
||||
* testSetErrorReporting Level
|
||||
|
|
Loading…
Reference in a new issue