Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jotoeri committed May 22, 2022
1 parent 51bd539 commit 4ed6d0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Unit/Controller/ShareApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ public function testValidNewShare(int $shareType, string $shareWith, array $expe
->with('5')
->willReturn($form);

$this->userManager->expects($this->any())
->method('get')
->with($shareWith)
->willReturn($this->createMock(IUser::class));

$this->groupManager->expects($this->any())
->method('get')
->with($shareWith)
->willReturn($this->createMock(IGroup::class));

$share = new Share();
$share->setformId('5');
$share->setShareType($shareType);
Expand Down

0 comments on commit 4ed6d0b

Please sign in to comment.