summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests/Notification
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-20 17:15:31 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-20 17:15:31 +0200
commit42140ab53fb391b8103f44b3216682f43db874fe (patch)
tree13d9a69a79abe2222c1bdb16d27ec9c2260283b7 /apps/updatenotification/tests/Notification
parent94322971a5a052becb92d4f81a158fd1cf43c873 (diff)
downloadnextcloud-server-42140ab53fb391b8103f44b3216682f43db874fe.tar.gz
nextcloud-server-42140ab53fb391b8103f44b3216682f43db874fe.zip
Fix update notification tests
18) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #1 ('app2', '1.0.1', '1.0.0', '1.0.0', true, array('user1'), array(array('user1'))) Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void" 19) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #2 ('app3', '1.0.1', false, false, true, array('user2', 'user3'), array(array('user2'), array('user3'))) Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void" Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests/Notification')
-rw-r--r--apps/updatenotification/tests/Notification/BackgroundJobTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/updatenotification/tests/Notification/BackgroundJobTest.php b/apps/updatenotification/tests/Notification/BackgroundJobTest.php
index 09b1cb06d5a..1d94fba29ed 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())