safer teardown

This commit is contained in:
Robin Appelman 2015-04-24 18:10:32 +02:00
parent 32067f9e80
commit 0789a6433e

View file

@ -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);