Skip to content

Commit a5218a7

Browse files
committed
fix(taskprocessing): fix tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 121b0f0 commit a5218a7

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

tests/lib/TaskProcessing/TaskProcessingTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use OCP\IServerContainer;
2727
use OCP\IUser;
2828
use OCP\IUserManager;
29-
use OCP\SpeechToText\ISpeechToTextManager;
3029
use OCP\TaskProcessing\EShapeType;
3130
use OCP\TaskProcessing\Events\TaskFailedEvent;
3231
use OCP\TaskProcessing\Events\TaskSuccessfulEvent;
@@ -450,15 +449,6 @@ protected function setUp(): void {
450449

451450
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
452451

453-
$textProcessingManager = new \OC\TextProcessing\Manager(
454-
$this->serverContainer,
455-
$this->coordinator,
456-
\OC::$server->get(LoggerInterface::class),
457-
$this->jobList,
458-
\OC::$server->get(\OC\TextProcessing\Db\TaskMapper::class),
459-
\OC::$server->get(IConfig::class),
460-
);
461-
462452
$text2imageManager = new \OC\TextToImage\Manager(
463453
$this->serverContainer,
464454
$this->coordinator,
@@ -481,9 +471,7 @@ protected function setUp(): void {
481471
$this->eventDispatcher,
482472
\OC::$server->get(IAppDataFactory::class),
483473
\OC::$server->get(IRootFolder::class),
484-
$textProcessingManager,
485474
$text2imageManager,
486-
\OC::$server->get(ISpeechToTextManager::class),
487475
$this->userMountCache,
488476
\OC::$server->get(IClientService::class),
489477
\OC::$server->get(IAppManager::class),

tests/lib/TextProcessing/TextProcessingTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ protected function setUp(): void {
176176
\OC::$server->get(LoggerInterface::class),
177177
$this->jobList,
178178
$this->taskMapper,
179-
$config
179+
$config,
180+
\OC::$server->get(\OCP\TaskProcessing\IManager::class),
180181
);
181182
}
182183

0 commit comments

Comments
 (0)