aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-12-21 08:57:53 +0100
committerJulien Veyssier <julien-nc@posteo.net>2024-05-02 16:43:40 +0200
commit52eb6d87263302a520e0d78a3ec3f9e86ecf477f (patch)
tree47d6af83b0bbeeebdbd839cb4d003bbd341c2fa3 /tests
parent8694675a2635f06a5cac59253aa1ec45a019ee8a (diff)
downloadnextcloud-server-52eb6d87263302a520e0d78a3ec3f9e86ecf477f.tar.gz
nextcloud-server-52eb6d87263302a520e0d78a3ec3f9e86ecf477f.zip
feat(bg-jobs): Allow calling cron.php with a background job class
Signed-off-by: Julius Härtl <jus@bitgrid.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 64c0cf8038e..d480b93cc4a 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): ?IJob {
+ public function getNext(bool $onlyTimeSensitive = false, string $jobClass = null): ?IJob {
if (count($this->jobs) > 0) {
if ($this->last < (count($this->jobs) - 1)) {
$i = $this->last + 1;