diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-20 12:31:15 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-26 10:59:59 +0200 |
commit | 27e3a977aa47d7d78ad94eaf10aae98398fa26b6 (patch) | |
tree | a280631e9b4bce10fdbb7af970861a8af86837b2 /apps/updatenotification/tests | |
parent | 2249c77a06d7238a8f4234f636f4cdddd07d56a4 (diff) | |
download | nextcloud-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.php | 2 |
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()) |