summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/api.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-07-11 14:27:43 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-08-05 16:53:28 +0200
commit676fa459d79199d4d35edc971c663308428eef65 (patch)
tree0533b0b6ae548c89f453298e0fd78e91acb36232 /apps/files_sharing/tests/api.php
parent244d4e1399122a6e70120a2ceb7ba25c001b51ba (diff)
downloadnextcloud-server-676fa459d79199d4d35edc971c663308428eef65.tar.gz
nextcloud-server-676fa459d79199d4d35edc971c663308428eef65.zip
Minor fixes
* instanceof \OC\Files\View * fix misplaced paranthesis * remove misplaced character in comment
Diffstat (limited to 'apps/files_sharing/tests/api.php')
-rw-r--r--apps/files_sharing/tests/api.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php
index 49571d4c3c2..fd3d25564b6 100644
--- a/apps/files_sharing/tests/api.php
+++ b/apps/files_sharing/tests/api.php
@@ -52,8 +52,10 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base {
}
function tearDown() {
- $this->view->unlink($this->filename);
- $this->view->deleteAll($this->folder);
+ if($this->view instanceof \OC\Files\View) {
+ $this->view->unlink($this->filename);
+ $this->view->deleteAll($this->folder);
+ }
self::$tempStorage = null;