diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-12 17:18:59 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-12 17:18:59 +0100 |
commit | d74044f6341e93861d820f21b6d37a2f98e1ef60 (patch) | |
tree | 2e25ede4dd29913b5e526cce3b790d627a230205 /tests | |
parent | e74f4646622a6f667228d52be1dde091bb0b2757 (diff) | |
download | nextcloud-server-d74044f6341e93861d820f21b6d37a2f98e1ef60.tar.gz nextcloud-server-d74044f6341e93861d820f21b6d37a2f98e1ef60.zip |
Fix API breakage by using a new method instead
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/BackgroundJob/DummyJobList.php | 2 | ||||
-rw-r--r-- | tests/lib/BackgroundJob/JobListTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php index 4d14ed9e7db..be48259789a 100644 --- a/tests/lib/BackgroundJob/DummyJobList.php +++ b/tests/lib/BackgroundJob/DummyJobList.php @@ -72,7 +72,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList { return $this->jobs; } - public function getJobs($job, ?int $limit, int $offset): array { + public function getJobsIterator($job, ?int $limit, int $offset): array { if ($job instanceof IJob) { $jobClass = get_class($job); } else { diff --git a/tests/lib/BackgroundJob/JobListTest.php b/tests/lib/BackgroundJob/JobListTest.php index 62f04509068..ea02e1cd8b9 100644 --- a/tests/lib/BackgroundJob/JobListTest.php +++ b/tests/lib/BackgroundJob/JobListTest.php @@ -54,7 +54,7 @@ class JobListTest extends TestCase { } protected function getAllSorted() { - $iterator = $this->instance->getJobs(null, null, 0); + $iterator = $this->instance->getJobsIterator(null, null, 0); $jobs = []; foreach ($iterator as $job) { |