]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test 3895/head
authorJoas Schilling <coding@schilljs.com>
Mon, 20 Mar 2017 11:31:15 +0000 (12:31 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 26 Mar 2017 08:59:59 +0000 (10:59 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/updatenotification/tests/Notification/BackgroundJobTest.php

index 468f4cf9594f094a36e37337eb315ecbdcb31553..92a8a687f5a16b1ff2d2c95a01ac7671e90fc279 100644 (file)
@@ -166,7 +166,7 @@ class BackgroundJobTest extends TestCase {
                if ($version === null) {
                        $job->expects($this->never())
                                ->method('createNotifications');
-                       $job->expects($this->never())
+                       $job->expects($versionCheck === null ? $this->never() : $this->once())
                                ->method('clearErrorNotifications');
                } else if ($version === false) {
                        $job->expects($this->never())