fix: Fix taskprocessing:worker command tests

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2026-04-28 13:00:48 +02:00
parent 490c20ae1d
commit 1a724c977c

View file

@ -10,6 +10,7 @@ declare(strict_types=1);
namespace Tests\Core\Command\TaskProcessing;
use OC\Core\Command\TaskProcessing\WorkerCommand;
use OCP\IAppConfig;
use OCP\TaskProcessing\Exception\Exception;
use OCP\TaskProcessing\Exception\NotFoundException;
use OCP\TaskProcessing\IManager;
@ -24,6 +25,7 @@ use Test\TestCase;
class WorkerCommandTest extends TestCase {
private IManager&MockObject $manager;
private LoggerInterface&MockObject $logger;
private IAppConfig&MockObject $appConfig;
private WorkerCommand $command;
protected function setUp(): void {
@ -31,7 +33,8 @@ class WorkerCommandTest extends TestCase {
$this->manager = $this->createMock(IManager::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->command = new WorkerCommand($this->manager, $this->logger);
$this->appConfig = $this->createMock(IAppConfig::class);
$this->command = new WorkerCommand($this->manager, $this->logger, $this->appConfig);
}
/**