summaryrefslogtreecommitdiffstats
path: root/tests/lib/connector/sabre/file.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-22 11:22:06 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-22 11:22:06 +0200
commitf62c4eafa549a26efcce025e3b33ed87cbce5fd4 (patch)
tree22f951c6d31e14cd074558aa800cc11a0947e187 /tests/lib/connector/sabre/file.php
parent6e0e6212188aa4a1d57339fa2ee4afd548414d1a (diff)
downloadnextcloud-server-f62c4eafa549a26efcce025e3b33ed87cbce5fd4.tar.gz
nextcloud-server-f62c4eafa549a26efcce025e3b33ed87cbce5fd4.zip
test cases added for create/remove Shared folder and file
Diffstat (limited to 'tests/lib/connector/sabre/file.php')
-rw-r--r--tests/lib/connector/sabre/file.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/connector/sabre/file.php b/tests/lib/connector/sabre/file.php
index a1dade3d63d..e1fed0384c6 100644
--- a/tests/lib/connector/sabre/file.php
+++ b/tests/lib/connector/sabre/file.php
@@ -35,4 +35,11 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
$etag = $file->put('test data');
}
+ /**
+ * @expectedException Sabre_DAV_Exception_Forbidden
+ */
+ public function testDeleteSharedFails() {
+ $file = new OC_Connector_Sabre_File('Shared');
+ $file->delete();
+ }
}