diff --git a/apps/updatenotification/tests/Notification/BackgroundJobTest.php b/apps/updatenotification/tests/Notification/BackgroundJobTest.php index 09b1cb06d5..1d94fba29e 100644 --- a/apps/updatenotification/tests/Notification/BackgroundJobTest.php +++ b/apps/updatenotification/tests/Notification/BackgroundJobTest.php @@ -331,8 +331,7 @@ class BackgroundJobTest extends TestCase { \call_user_func_array([$mockedMethod, 'withConsecutive'], $userNotifications); $this->notificationManager->expects($this->exactly(\count($userNotifications))) - ->method('notify') - ->willReturn($notification); + ->method('notify'); } $this->notificationManager->expects($this->once())