summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-20 20:37:27 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-20 20:37:27 +0200
commitcd01c440a01744d666df275cb7941fa29d2283dd (patch)
treed09caccace60dcfcc42e9b00ae2d810ec29643cc /tests
parentcdcabbd0b3f6209b2a312b30a84c381f125bcf68 (diff)
parentb53d6598f10c97318fbf065369f5b097eb134e28 (diff)
downloadnextcloud-server-cd01c440a01744d666df275cb7941fa29d2283dd.tar.gz
nextcloud-server-cd01c440a01744d666df275cb7941fa29d2283dd.zip
Merge pull request #23919 from owncloud/cyclyc-share-dep-example
SharedStorage to new sharing code + cleanup
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/share20/managertest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/lib/share20/managertest.php b/tests/lib/share20/managertest.php
index 197fa874388..7d79150449c 100644
--- a/tests/lib/share20/managertest.php
+++ b/tests/lib/share20/managertest.php
@@ -647,7 +647,7 @@ class ManagerTest extends \Test\TestCase {
$data[] = [$this->createShare(null, \OCP\Share::SHARE_TYPE_GROUP, $limitedPermssions, $group0, $user0, $user0, 17, null, null), 'Cannot increase permissions of path', true];
$data[] = [$this->createShare(null, \OCP\Share::SHARE_TYPE_LINK, $limitedPermssions, null, $user0, $user0, 3, null, null), 'Cannot increase permissions of path', true];
- $nonMoveableMountPermssions = $this->getMock('\OCP\Files\File');
+ $nonMoveableMountPermssions = $this->getMock('\OCP\Files\Folder');
$nonMoveableMountPermssions->method('isShareable')->willReturn(true);
$nonMoveableMountPermssions->method('getPermissions')->willReturn(\OCP\Constants::PERMISSION_READ);
$nonMoveableMountPermssions->method('getPath')->willReturn('path');
@@ -2477,7 +2477,9 @@ class ManagerTest extends \Test\TestCase {
public function testMoveShareUser() {
$share = $this->manager->newShare();
- $share->setShareType(\OCP\Share::SHARE_TYPE_USER);
+ $share->setShareType(\OCP\Share::SHARE_TYPE_USER)
+ ->setId('42')
+ ->setProviderId('foo');
$share->setSharedWith('recipient');
@@ -2508,7 +2510,9 @@ class ManagerTest extends \Test\TestCase {
public function testMoveShareGroup() {
$share = $this->manager->newShare();
- $share->setShareType(\OCP\Share::SHARE_TYPE_GROUP);
+ $share->setShareType(\OCP\Share::SHARE_TYPE_GROUP)
+ ->setId('42')
+ ->setProviderId('foo');
$group = $this->getMock('\OCP\IGroup');
$share->setSharedWith('group');