From e9c972f708e4058deee8ebd2ee9c2e47380aab9c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 19 Nov 2019 16:09:26 +0100 Subject: Fix share tests Signed-off-by: Roeland Jago Douma --- apps/files_sharing/tests/WatcherTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files_sharing/tests/WatcherTest.php') diff --git a/apps/files_sharing/tests/WatcherTest.php b/apps/files_sharing/tests/WatcherTest.php index e6ca5f40a8f..59f84057a14 100644 --- a/apps/files_sharing/tests/WatcherTest.php +++ b/apps/files_sharing/tests/WatcherTest.php @@ -29,6 +29,8 @@ namespace OCA\Files_Sharing\Tests; +use OCP\Share\IShare; + /** * Class WatcherTest * @@ -74,6 +76,9 @@ class WatcherTest extends TestCase { \OCP\Constants::PERMISSION_ALL ); + $this->_share->setStatus(IShare::STATUS_ACCEPTED); + $this->shareManager->updateShare($this->_share); + // login as user2 self::loginHelper(self::TEST_FILES_SHARING_API_USER2); -- cgit v1.2.3