summaryrefslogtreecommitdiffstats
path: root/tests/lib/config.php
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-07-21 11:13:29 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-07-21 11:13:29 +0200
commit8f93490ac45fbd74bd0e9697a685fd43bb34239b (patch)
treee47a4124c9fe76c47f62d425dcc0fd6a4eb873e2 /tests/lib/config.php
parent05c83a163ac55bc422a7f22184dde5da18805907 (diff)
downloadnextcloud-server-8f93490ac45fbd74bd0e9697a685fd43bb34239b.tar.gz
nextcloud-server-8f93490ac45fbd74bd0e9697a685fd43bb34239b.zip
fix failing master branch - Test_Config::testWriteData
Diffstat (limited to 'tests/lib/config.php')
-rw-r--r--tests/lib/config.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib/config.php b/tests/lib/config.php
index c67a66c832e..1a1d062d688 100644
--- a/tests/lib/config.php
+++ b/tests/lib/config.php
@@ -80,6 +80,17 @@ class Test_Config extends PHPUnit_Framework_TestCase {
*/
public function testWriteData() {
$config = new OC\Config('/non-writable');
+ // TODO never get's called, because the previous call throws the exception
+ // maybe include some more logic to create a readable dir and then try to
+ // write to this dir
+ //
+ // console commands:
+ // $ sudo touch /non-writableconfig.php
+ // $ sudo chmod go-rwx /non-writableconfig.php
+ // ---- call the tests now -> above statemant throws the exception
+ //
+ // $ sudo chmod go+r /non-writableconfig.php
+ // ---- call the tests now -> bellow statemant throws the exception
$config->setValue('foo', 'bar');
}
}