diff --git a/tests/Unit/Service/OutOfOfficeServiceTest.php b/tests/Unit/Service/OutOfOfficeServiceTest.php index 8c9005c393..d2afbb7631 100644 --- a/tests/Unit/Service/OutOfOfficeServiceTest.php +++ b/tests/Unit/Service/OutOfOfficeServiceTest.php @@ -155,7 +155,7 @@ public function testUpdateFromSystemWithEnabledOutOfOffice(?IOutOfOfficeData $da $allowedRecipientsService->expects(self::once()) ->method('get') ->with($mailAccount) - ->willReturn([]); + ->willReturn(['email@domain.com']); $sieveService->expects(self::once()) ->method('updateActiveScript') ->with('user', 1, '# new sieve script'); @@ -233,7 +233,7 @@ public function testUpdateFromSystemWithDisabledOutOfOffice(?IOutOfOfficeData $d $allowedRecipientsService->expects(self::once()) ->method('get') ->with($mailAccount) - ->willReturn([]); + ->willReturn(['email@domain.com']); $sieveService->expects(self::once()) ->method('updateActiveScript') ->with('user', 1, '# new sieve script');