diff options
Diffstat (limited to 'apps/files_sharing/tests/api.php')
-rw-r--r-- | apps/files_sharing/tests/api.php | 6 |
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; |