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

This commit is contained in:
Robin Appelman 2013-07-05 15:26:39 +02:00
parent f29dd1c784
commit 492a35737c
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class Test_Config extends PHPUnit_Framework_TestCase {
} }
public function testSetValue() { public function testSetValue() {
$this->config->setDebugMode(false);
$this->config->setValue('foo', 'moo'); $this->config->setValue('foo', 'moo');
$this->assertAttributeEquals(array('foo' => 'moo'), 'cache', $this->config); $this->assertAttributeEquals(array('foo' => 'moo'), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE); $content = file_get_contents(self::CONFIG_FILE);
@ -65,6 +66,7 @@ EOL
} }
public function testDeleteKey() { public function testDeleteKey() {
$this->config->setDebugMode(false);
$this->config->deleteKey('foo'); $this->config->deleteKey('foo');
$this->assertAttributeEquals(array(), 'cache', $this->config); $this->assertAttributeEquals(array(), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE); $content = file_get_contents(self::CONFIG_FILE);