From: Robin Appelman Date: Fri, 5 Jul 2013 13:26:39 +0000 (+0200) Subject: fix \OC\Config test cases when debug mode is enabled X-Git-Tag: v6.0.0alpha2~473^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=492a35737c634fee27b0eb9d3ea6425bc6d98396;p=nextcloud-server.git fix \OC\Config test cases when debug mode is enabled --- diff --git a/tests/lib/config.php b/tests/lib/config.php index 12473eb6676..87ee2807c2d 100644 --- a/tests/lib/config.php +++ b/tests/lib/config.php @@ -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);