diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-24 16:49:16 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-24 16:49:16 +0200 |
commit | 89ed2c37bf656ceb772bb6759c8977a7dc78b3fb (patch) | |
tree | 4a467f829fcc748531cad54e7c08e06dd98d1b7d /apps/files_sharing/tests/MountProviderTest.php | |
parent | 654cd18864c943d9ff93c2e6151bb6529fa44513 (diff) | |
download | nextcloud-server-89ed2c37bf656ceb772bb6759c8977a7dc78b3fb.tar.gz nextcloud-server-89ed2c37bf656ceb772bb6759c8977a7dc78b3fb.zip |
Update share type constant usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/tests/MountProviderTest.php')
-rw-r--r-- | apps/files_sharing/tests/MountProviderTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_sharing/tests/MountProviderTest.php b/apps/files_sharing/tests/MountProviderTest.php index ec52db8542e..60c622ec4a4 100644 --- a/apps/files_sharing/tests/MountProviderTest.php +++ b/apps/files_sharing/tests/MountProviderTest.php @@ -129,19 +129,19 @@ class MountProviderTest extends \Test\TestCase { ->willReturn('user1'); $this->shareManager->expects($this->at(0)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_USER) + ->with('user1', IShare::TYPE_USER) ->willReturn($userShares); $this->shareManager->expects($this->at(1)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_GROUP, null, -1) + ->with('user1', IShare::TYPE_GROUP, null, -1) ->willReturn($groupShares); $this->shareManager->expects($this->at(2)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_CIRCLE, null, -1) + ->with('user1', IShare::TYPE_CIRCLE, null, -1) ->willReturn($circleShares); $this->shareManager->expects($this->at(3)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_ROOM, null, -1) + ->with('user1', IShare::TYPE_ROOM, null, -1) ->willReturn($roomShares); $this->shareManager->expects($this->any()) ->method('newShare') @@ -338,19 +338,19 @@ class MountProviderTest extends \Test\TestCase { $roomShares = []; $this->shareManager->expects($this->at(0)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_USER) + ->with('user1', IShare::TYPE_USER) ->willReturn($userShares); $this->shareManager->expects($this->at(1)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_GROUP, null, -1) + ->with('user1', IShare::TYPE_GROUP, null, -1) ->willReturn($groupShares); $this->shareManager->expects($this->at(2)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_CIRCLE, null, -1) + ->with('user1', IShare::TYPE_CIRCLE, null, -1) ->willReturn($circleShares); $this->shareManager->expects($this->at(3)) ->method('getSharedWith') - ->with('user1', \OCP\Share::SHARE_TYPE_ROOM, null, -1) + ->with('user1', IShare::TYPE_ROOM, null, -1) ->willReturn($roomShares); $this->shareManager->expects($this->any()) ->method('newShare') |