Skip to content

Commit 925b621

Browse files
updated test cases
Signed-off-by: Yogesh Shejwadkar <[email protected]>
1 parent 1d6b465 commit 925b621

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files_sharing/tests/Controller/ShareAPIControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public function testGetGetShareNotExists() {
505505

506506
public function createShare($id, $shareType, $sharedWith, $sharedBy, $shareOwner, $path, $permissions,
507507
$shareTime, $expiration, $parent, $target, $mail_send, $note = '', $token = null,
508-
$password = null, $label = '') {
508+
$password = null, $label = '', $hideDownload = null) {
509509
$share = $this->getMockBuilder(IShare::class)->getMock();
510510
$share->method('getId')->willReturn($id);
511511
$share->method('getShareType')->willReturn($shareType);
@@ -524,6 +524,7 @@ public function createShare($id, $shareType, $sharedWith, $sharedBy, $shareOwner
524524
$share->method('getMailSend')->willReturn($mail_send);
525525
$share->method('getToken')->willReturn($token);
526526
$share->method('getPassword')->willReturn($password);
527+
$share->method('getHideDownload')->willReturn($hideDownload);
527528

528529
if ($shareType === IShare::TYPE_USER ||
529530
$shareType === IShare::TYPE_GROUP ||

0 commit comments

Comments
 (0)