Update tests/lib/BackgroundJob/DummyJobList.php

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-04-24 12:35:52 +02:00 committed by GitHub
parent d1e4a7a750
commit 6148c5e0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,11 +141,11 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
}
public function hasReservedJob(?string $className = null): bool {
return $this->reserved[$className];
return $this->reserved[$className ?? ''];
}
public function setHasReservedJob(?string $className, bool $hasReserved): void {
$this->reserved[$className] = $hasReserved;
$this->reserved[$className ?? ''] = $hasReserved;
}
public function setExecutionTime(IJob $job, $timeTaken): void {