Skip to content

Commit

Permalink
fix test not properly setting non exististing user
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Winkens <[email protected]>
  • Loading branch information
mwinkens committed Jul 30, 2024
1 parent b1a0d68 commit 9ed28d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Command/AnnounceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function testExecuteException($user, $subject, $message, $group, $activit
$this->setupInput($user, $subject, $message, $group, $activites, $notifications, $emails, $comments, $scheduleTime, $deleteTime);
$this->userManager->expects($this->once())
->method('userExists')
->willReturn(true);
->willReturn($user !== 'invalid');
$this->time->expects($this->any())
->method('getTime')
->willReturn(10);
Expand Down

0 comments on commit 9ed28d9

Please sign in to comment.