diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-24 17:49:16 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-24 17:49:16 +0300 |
commit | 89ed2c37bf656ceb772bb6759c8977a7dc78b3fb (patch) | |
tree | 4a467f829fcc748531cad54e7c08e06dd98d1b7d /apps/files_versions | |
parent | 654cd18864c943d9ff93c2e6151bb6529fa44513 (diff) |
Update share type constant usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/tests/VersioningTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php index 72fd313ac16..ffbf4e19f98 100644 --- a/apps/files_versions/tests/VersioningTest.php +++ b/apps/files_versions/tests/VersioningTest.php @@ -336,7 +336,7 @@ class VersioningTest extends \Test\TestCase { $node = \OC::$server->getUserFolder(self::TEST_VERSIONS_USER)->get('folder1'); $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); @@ -403,7 +403,7 @@ class VersioningTest extends \Test\TestCase { $node = \OC::$server->getUserFolder(self::TEST_VERSIONS_USER)->get('folder1'); $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); @@ -452,7 +452,7 @@ class VersioningTest extends \Test\TestCase { $node = \OC::$server->getUserFolder(self::TEST_VERSIONS_USER)->get('folder1'); $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); @@ -519,7 +519,7 @@ class VersioningTest extends \Test\TestCase { $node = \OC::$server->getUserFolder(self::TEST_VERSIONS_USER)->get('test.txt'); $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_SHARE); @@ -662,7 +662,7 @@ class VersioningTest extends \Test\TestCase { $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_READ); @@ -700,7 +700,7 @@ class VersioningTest extends \Test\TestCase { $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); @@ -875,7 +875,7 @@ class VersioningTest extends \Test\TestCase { $node = \OC::$server->getUserFolder(self::TEST_VERSIONS_USER)->get('folder'); $share = \OC::$server->getShareManager()->newShare(); $share->setNode($node) - ->setShareType(\OCP\Share::SHARE_TYPE_USER) + ->setShareType(IShare::TYPE_USER) ->setSharedBy(self::TEST_VERSIONS_USER) ->setSharedWith(self::TEST_VERSIONS_USER2) ->setPermissions(\OCP\Constants::PERMISSION_ALL); |