Fix unit test

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-03-20 12:31:15 +01:00 committed by Roeland Jago Douma
parent 2249c77a06
commit 27e3a977aa
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View 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())