mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
safer teardown
This commit is contained in:
parent
32067f9e80
commit
0789a6433e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue