From a5218a7a5fe327adc07d2dfeaa686441a3227239 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 29 Aug 2024 12:23:36 +0200 Subject: [PATCH] fix(taskprocessing): fix tests Signed-off-by: Julien Veyssier --- tests/lib/TaskProcessing/TaskProcessingTest.php | 12 ------------ tests/lib/TextProcessing/TextProcessingTest.php | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/lib/TaskProcessing/TaskProcessingTest.php b/tests/lib/TaskProcessing/TaskProcessingTest.php index ac9dec1cd1dee..3b671c80feffe 100644 --- a/tests/lib/TaskProcessing/TaskProcessingTest.php +++ b/tests/lib/TaskProcessing/TaskProcessingTest.php @@ -26,7 +26,6 @@ use OCP\IServerContainer; use OCP\IUser; use OCP\IUserManager; -use OCP\SpeechToText\ISpeechToTextManager; use OCP\TaskProcessing\EShapeType; use OCP\TaskProcessing\Events\TaskFailedEvent; use OCP\TaskProcessing\Events\TaskSuccessfulEvent; @@ -450,15 +449,6 @@ protected function setUp(): void { $this->eventDispatcher = $this->createMock(IEventDispatcher::class); - $textProcessingManager = new \OC\TextProcessing\Manager( - $this->serverContainer, - $this->coordinator, - \OC::$server->get(LoggerInterface::class), - $this->jobList, - \OC::$server->get(\OC\TextProcessing\Db\TaskMapper::class), - \OC::$server->get(IConfig::class), - ); - $text2imageManager = new \OC\TextToImage\Manager( $this->serverContainer, $this->coordinator, @@ -481,9 +471,7 @@ protected function setUp(): void { $this->eventDispatcher, \OC::$server->get(IAppDataFactory::class), \OC::$server->get(IRootFolder::class), - $textProcessingManager, $text2imageManager, - \OC::$server->get(ISpeechToTextManager::class), $this->userMountCache, \OC::$server->get(IClientService::class), \OC::$server->get(IAppManager::class), diff --git a/tests/lib/TextProcessing/TextProcessingTest.php b/tests/lib/TextProcessing/TextProcessingTest.php index db479a7a7b63d..08f7c4928520e 100644 --- a/tests/lib/TextProcessing/TextProcessingTest.php +++ b/tests/lib/TextProcessing/TextProcessingTest.php @@ -176,7 +176,8 @@ protected function setUp(): void { \OC::$server->get(LoggerInterface::class), $this->jobList, $this->taskMapper, - $config + $config, + \OC::$server->get(\OCP\TaskProcessing\IManager::class), ); }