diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-19 16:09:26 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-20 08:08:02 +0100 |
commit | e9c972f708e4058deee8ebd2ee9c2e47380aab9c (patch) | |
tree | 4fd61beaae0d584e2aa7bfb106a8b9be77824e36 /apps/files_versions | |
parent | b367027798e1d666ae847453b1ce6faa89895a36 (diff) | |
download | nextcloud-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_versions')
-rw-r--r-- | apps/files_versions/tests/VersioningTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php index b35eb9a62c0..b3023dbef65 100644 --- a/apps/files_versions/tests/VersioningTest.php +++ b/apps/files_versions/tests/VersioningTest.php @@ -37,6 +37,7 @@ require_once __DIR__ . '/../appinfo/app.php'; use OC\Files\Storage\Temporary; use OCP\IConfig; +use OCP\Share\IShare; /** * Class Test_Files_versions @@ -325,6 +326,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); self::loginHelper(self::TEST_VERSIONS_USER2); @@ -393,6 +395,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); self::loginHelper(self::TEST_VERSIONS_USER2); $versionsFolder2 = '/' . self::TEST_VERSIONS_USER2 . '/files_versions'; @@ -442,6 +445,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); self::loginHelper(self::TEST_VERSIONS_USER2); $versionsFolder2 = '/' . self::TEST_VERSIONS_USER2 . '/files_versions'; @@ -509,6 +513,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_SHARE); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); self::loginHelper(self::TEST_VERSIONS_USER2); @@ -653,6 +658,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_READ); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); $versions = $this->createAndCheckVersions( \OC\Files\Filesystem::getView(), @@ -823,6 +829,7 @@ class VersioningTest extends \Test\TestCase { ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); $share = \OC::$server->getShareManager()->createShare($share); + \OC::$server->getShareManager()->acceptShare($share, self::TEST_VERSIONS_USER2); $this->loginAsUser(self::TEST_VERSIONS_USER2); |