diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-05 15:25:53 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-05 15:25:53 +0200 |
commit | f29dd1c784b736e5d5398f936733409c0db0160d (patch) | |
tree | 876646b9533d9342e943c25f74df3e2ee77fbf90 /tests/lib/config.php | |
parent | ad9458e85d319c12575293e0b25069d35db15720 (diff) | |
download | nextcloud-server-f29dd1c784b736e5d5398f936733409c0db0160d.tar.gz nextcloud-server-f29dd1c784b736e5d5398f936733409c0db0160d.zip |
fix test case whitespace
Diffstat (limited to 'tests/lib/config.php')
-rw-r--r-- | tests/lib/config.php | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/tests/lib/config.php b/tests/lib/config.php index c17d2ae7eff..12473eb6676 100644 --- a/tests/lib/config.php +++ b/tests/lib/config.php @@ -21,30 +21,26 @@ class Test_Config extends PHPUnit_Framework_TestCase { $this->config = new OC\Config(self::CONFIG_DIR); } - public function testReadData() - { + public function testReadData() { $config = new OC\Config('/non-existing'); $this->assertAttributeEquals(array(), 'cache', $config); - $this->assertAttributeEquals(array('foo'=>'bar'), 'cache', $this->config); + $this->assertAttributeEquals(array('foo' => 'bar'), 'cache', $this->config); } - public function testGetKeys() - { + public function testGetKeys() { $this->assertEquals(array('foo'), $this->config->getKeys()); } - public function testGetValue() - { + public function testGetValue() { $this->assertEquals('bar', $this->config->getValue('foo')); $this->assertEquals(null, $this->config->getValue('bar')); $this->assertEquals('moo', $this->config->getValue('bar', 'moo')); } - public function testSetValue() - { + public function testSetValue() { $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); $this->assertEquals(<<<EOL <?php @@ -53,9 +49,9 @@ class Test_Config extends PHPUnit_Framework_TestCase { ); EOL -, $content); + , $content); $this->config->setValue('bar', 'red'); - $this->assertAttributeEquals(array('foo'=>'moo', 'bar'=>'red'), 'cache', $this->config); + $this->assertAttributeEquals(array('foo' => 'moo', 'bar' => 'red'), 'cache', $this->config); $content = file_get_contents(self::CONFIG_FILE); $this->assertEquals(<<<EOL <?php @@ -65,11 +61,10 @@ EOL ); EOL -, $content); + , $content); } - public function testDeleteKey() - { + public function testDeleteKey() { $this->config->deleteKey('foo'); $this->assertAttributeEquals(array(), 'cache', $this->config); $content = file_get_contents(self::CONFIG_FILE); @@ -79,11 +74,10 @@ EOL ); EOL -, $content); + , $content); } - public function testSavingDebugMode() - { + public function testSavingDebugMode() { $this->config->setDebugMode(true); $this->config->deleteKey('foo'); // change something so we save to the config file $this->assertAttributeEquals(array(), 'cache', $this->config); @@ -96,14 +90,13 @@ define('DEBUG',true); ); EOL -, $content); + , $content); } /** * @expectedException \OC\HintException */ - public function testWriteData() - { + public function testWriteData() { $config = new OC\Config('/non-writable'); $config->setValue('foo', 'bar'); } |