mirror of
https://github.com/nextcloud/server.git
synced 2024-08-17 14:11:30 +02:00
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:
parent
d1e4a7a750
commit
6148c5e0a1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user