Skip to content

Commit 5b6da92

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix: Fix TaskProcessingWorkerIsRunning setup check tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 9899a49 commit 5b6da92

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/settings/tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use OCP\AppFramework\Utility\ITimeFactory;
1313
use OCP\IAppConfig;
1414
use OCP\IL10N;
15+
use OCP\IURLGenerator;
1516
use OCP\SetupCheck\SetupResult;
1617
use OCP\TaskProcessing\IManager;
1718
use OCP\TaskProcessing\Task;
@@ -23,6 +24,7 @@ class TaskProcessingWorkerIsRunningTest extends TestCase {
2324
private ITimeFactory&MockObject $timeFactory;
2425
private IManager&MockObject $taskProcessingManager;
2526
private IAppConfig&MockObject $appConfig;
27+
private IURLGenerator&MockObject $urlGenerator;
2628

2729
private TaskProcessingWorkerIsRunning $check;
2830

@@ -33,12 +35,14 @@ protected function setUp(): void {
3335
$this->timeFactory = $this->getMockBuilder(ITimeFactory::class)->getMock();
3436
$this->taskProcessingManager = $this->getMockBuilder(IManager::class)->getMock();
3537
$this->appConfig = $this->getMockBuilder(IAppConfig::class)->getMock();
38+
$this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock();
3639

3740
$this->check = new TaskProcessingWorkerIsRunning(
3841
$this->l10n,
3942
$this->taskProcessingManager,
4043
$this->timeFactory,
41-
$this->appConfig
44+
$this->appConfig,
45+
$this->urlGenerator,
4246
);
4347
}
4448

0 commit comments

Comments
 (0)