Skip to content

Commit

Permalink
updated test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Shejwadkar <yogesh.shejwadkar@t-systems.com>
  • Loading branch information
TSI-yogeshshejwadkar committed Sep 23, 2021
1 parent 1d6b465 commit 925b621
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function testGetGetShareNotExists() {

public function createShare($id, $shareType, $sharedWith, $sharedBy, $shareOwner, $path, $permissions,
$shareTime, $expiration, $parent, $target, $mail_send, $note = '', $token = null,
$password = null, $label = '') {
$password = null, $label = '', $hideDownload = null) {
$share = $this->getMockBuilder(IShare::class)->getMock();
$share->method('getId')->willReturn($id);
$share->method('getShareType')->willReturn($shareType);
Expand All @@ -524,6 +524,7 @@ public function createShare($id, $shareType, $sharedWith, $sharedBy, $shareOwner
$share->method('getMailSend')->willReturn($mail_send);
$share->method('getToken')->willReturn($token);
$share->method('getPassword')->willReturn($password);
$share->method('getHideDownload')->willReturn($hideDownload);

if ($shareType === IShare::TYPE_USER ||
$shareType === IShare::TYPE_GROUP ||
Expand Down

0 comments on commit 925b621

Please sign in to comment.