Skip to content
Snippets Groups Projects
Commit 492a3573 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix \OC\Config test cases when debug mode is enabled

parent f29dd1c7
Branches
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ class Test_Config extends PHPUnit_Framework_TestCase {
}
public function testSetValue() {
$this->config->setDebugMode(false);
$this->config->setValue('foo', 'moo');
$this->assertAttributeEquals(array('foo' => 'moo'), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
......@@ -65,6 +66,7 @@ EOL
}
public function testDeleteKey() {
$this->config->setDebugMode(false);
$this->config->deleteKey('foo');
$this->assertAttributeEquals(array(), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment