Skip to content

Commit 766bb71

Browse files
committed
fix: Don't call Job#execute() as it's deprecated
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 7b87f62 commit 766bb71

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/BackgroundJobTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testPreviewsJob() : void {
129129
// generate cached previews
130130
$this->previewsJob->setId(1);
131131
$this->previewsJob->setLastRun(0);
132-
$this->previewsJob->execute($this->jobList);
132+
$this->previewsJob->start($this->jobList);
133133

134134
$folder = $this->appData->getFolder('cache');
135135
$newCacheSize = count($folder->getDirectoryListing());
@@ -151,7 +151,7 @@ public function testGCJob() : void {
151151
// generate cached previews
152152
$this->previewsJob->setId(1);
153153
$this->previewsJob->setLastRun(0);
154-
$this->previewsJob->execute($this->jobList);
154+
$this->previewsJob->start($this->jobList);
155155

156156
$folder = $this->appData->getFolder('cache');
157157
$cacheSize = count($folder->getDirectoryListing());
@@ -169,7 +169,7 @@ public function testGCJob() : void {
169169
// run GC job
170170
$this->gcJob->setId(3);
171171
$this->gcJob->setLastRun(0);
172-
$this->gcJob->execute($this->jobList);
172+
$this->gcJob->start($this->jobList);
173173

174174
$newCacheSize = count($folder->getDirectoryListing());
175175
// should have cleaned up the pending cache entries

0 commit comments

Comments
 (0)