aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/config.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-05 15:26:39 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-05 15:26:39 +0200
commit492a35737c634fee27b0eb9d3ea6425bc6d98396 (patch)
treead66532b15c6427a6ab904ae0235940a486d1362 /tests/lib/config.php
parentf29dd1c784b736e5d5398f936733409c0db0160d (diff)
downloadnextcloud-server-492a35737c634fee27b0eb9d3ea6425bc6d98396.tar.gz
nextcloud-server-492a35737c634fee27b0eb9d3ea6425bc6d98396.zip
fix \OC\Config test cases when debug mode is enabled
Diffstat (limited to 'tests/lib/config.php')
-rw-r--r--tests/lib/config.php2
1 files changed, 2 insertions, 0 deletions
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);