]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix \OC\Config test cases when debug mode is enabled
authorRobin Appelman <icewind@owncloud.com>
Fri, 5 Jul 2013 13:26:39 +0000 (15:26 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 5 Jul 2013 13:26:39 +0000 (15:26 +0200)
tests/lib/config.php

index 12473eb6676b67d3f64fada8b2240737b4e6f518..87ee2807c2daa5c9c2a83ceffa184cb946dbcd8c 100644 (file)
@@ -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);