aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/watcher.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-24 18:10:32 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-27 14:07:16 +0200
commit0789a6433e5b25b5edc3434b2650a067367b9130 (patch)
tree31b9cb1e226e65db5ebd8cef7882353b8f593e8d /apps/files_sharing/tests/watcher.php
parent32067f9e8043ee5ac8e6735743a94c146bba6c4c (diff)
downloadnextcloud-server-0789a6433e5b25b5edc3434b2650a067367b9130.tar.gz
nextcloud-server-0789a6433e5b25b5edc3434b2650a067367b9130.zip
safer teardown
Diffstat (limited to 'apps/files_sharing/tests/watcher.php')
-rw-r--r--apps/files_sharing/tests/watcher.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/watcher.php b/apps/files_sharing/tests/watcher.php
index a2e440069a4..4af5de6aaae 100644
--- a/apps/files_sharing/tests/watcher.php
+++ b/apps/files_sharing/tests/watcher.php
@@ -76,7 +76,9 @@ class Test_Files_Sharing_Watcher extends OCA\Files_sharing\Tests\TestCase {
}
protected function tearDown() {
- $this->sharedCache->clear();
+ if ($this->sharedCache) {
+ $this->sharedCache->clear();
+ }
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);