summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-20 12:31:15 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-26 10:59:59 +0200
commit27e3a977aa47d7d78ad94eaf10aae98398fa26b6 (patch)
treea280631e9b4bce10fdbb7af970861a8af86837b2 /apps/updatenotification/tests
parent2249c77a06d7238a8f4234f636f4cdddd07d56a4 (diff)
downloadnextcloud-server-27e3a977aa47d7d78ad94eaf10aae98398fa26b6.tar.gz
nextcloud-server-27e3a977aa47d7d78ad94eaf10aae98398fa26b6.zip
Fix unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r--apps/updatenotification/tests/Notification/BackgroundJobTest.php2
1 files changed, 1 insertions, 1 deletions
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())