diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-08 14:29:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-08 15:22:49 +0200 |
commit | db0c3bd53506b2233deebdc35aa8e6f005654962 (patch) | |
tree | 6683a723d9d1c581d6c5a02f8c678634b58434f8 | |
parent | 6f3eeeeb36d86b352d396f730fbc6a8d1e8ca160 (diff) | |
download | nextcloud-server-db0c3bd53506b2233deebdc35aa8e6f005654962.tar.gz nextcloud-server-db0c3bd53506b2233deebdc35aa8e6f005654962.zip |
Fix Share20OCSTest
-rw-r--r-- | apps/files_sharing/tests/api/share20ocstest.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/api/share20ocstest.php b/apps/files_sharing/tests/api/share20ocstest.php index 42a23b43ce1..9a30b8720ed 100644 --- a/apps/files_sharing/tests/api/share20ocstest.php +++ b/apps/files_sharing/tests/api/share20ocstest.php @@ -661,10 +661,9 @@ class Share20OCSTest extends \Test\TestCase { ->with('valid-path') ->willReturn($path); - $user = $this->getMock('\OCP\IUser'); $this->userManager->method('userExists')->with('validUser')->willReturn(true); - $share->method('setPath')->with($path); + $share->method('setNode')->with($path); $share->method('setPermissions') ->with( \OCP\Constants::PERMISSION_ALL & @@ -769,7 +768,7 @@ class Share20OCSTest extends \Test\TestCase { ->method('allowGroupSharing') ->willReturn(true); - $share->method('setPath')->with($path); + $share->method('setNode')->with($path); $share->method('setPermissions')->with(\OCP\Constants::PERMISSION_ALL); $share->method('setShareType')->with(\OCP\Share::SHARE_TYPE_GROUP); $share->method('setSharedWith')->with('validGroup'); @@ -818,7 +817,7 @@ class Share20OCSTest extends \Test\TestCase { ->method('allowGroupSharing') ->willReturn(false); - $share->method('setPath')->with($path); + $share->method('setNode')->with($path); $expected = new \OC_OCS_Result(null, 404, 'group sharing is disabled by the administrator'); $result = $this->ocs->createShare(); |