From 27e3a977aa47d7d78ad94eaf10aae98398fa26b6 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Mon, 20 Mar 2017 12:31:15 +0100
Subject: [PATCH] Fix unit test

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 .../updatenotification/tests/Notification/BackgroundJobTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/updatenotification/tests/Notification/BackgroundJobTest.php b/apps/updatenotification/tests/Notification/BackgroundJobTest.php
index 468f4cf9594..92a8a687f5a 100644
--- a/apps/updatenotification/tests/Notification/BackgroundJobTest.php
+++ b/apps/updatenotification/tests/Notification/BackgroundJobTest.php
@@ -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())
-- 
GitLab