summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/WatcherTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-19 16:09:26 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-20 08:08:02 +0100
commite9c972f708e4058deee8ebd2ee9c2e47380aab9c (patch)
tree4fd61beaae0d584e2aa7bfb106a8b9be77824e36 /apps/files_sharing/tests/WatcherTest.php
parentb367027798e1d666ae847453b1ce6faa89895a36 (diff)
downloadnextcloud-server-e9c972f708e4058deee8ebd2ee9c2e47380aab9c.tar.gz
nextcloud-server-e9c972f708e4058deee8ebd2ee9c2e47380aab9c.zip
Fix share tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/tests/WatcherTest.php')
-rw-r--r--apps/files_sharing/tests/WatcherTest.php5
1 files changed, 5 insertions, 0 deletions
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);