aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2024-04-08 17:25:51 +0200
committerJulien Veyssier <julien-nc@posteo.net>2024-05-02 16:43:41 +0200
commit1acc57b5c03b80ad5b6b5df7aff9df0fef83f14f (patch)
treeb8f0eaf7fca5bc99574a0f5a61ed24871aa90372 /tests
parenta5f244a58b6cfcc4feb8d8bdf33b40f983c342cb (diff)
downloadnextcloud-server-1acc57b5c03b80ad5b6b5df7aff9df0fef83f14f.tar.gz
nextcloud-server-1acc57b5c03b80ad5b6b5df7aff9df0fef83f14f.zip
feat(bg-jobs): allow setting a job class list instead of a single class in cron.php and the job worker occ command
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index d480b93cc4a..f19e26cd7fd 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -100,7 +100,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
/**
* get the next job in the list
*/
- public function getNext(bool $onlyTimeSensitive = false, string $jobClass = null): ?IJob {
+ public function getNext(bool $onlyTimeSensitive = false, ?array $jobClasses = null): ?IJob {
if (count($this->jobs) > 0) {
if ($this->last < (count($this->jobs) - 1)) {
$i = $this->last + 1;