diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2024-08-29 12:23:36 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2024-08-30 14:06:15 +0200 |
commit | d2ec025fa492937ba7cf8c08b88baae2ef60c583 (patch) | |
tree | 0f8f11850ed0a916a194e955c73916f61f4719f0 /tests/lib | |
parent | aa64204075817b6b60132282b8b606955f7c5e83 (diff) | |
download | nextcloud-server-d2ec025fa492937ba7cf8c08b88baae2ef60c583.tar.gz nextcloud-server-d2ec025fa492937ba7cf8c08b88baae2ef60c583.zip |
fix(taskprocessing): fix tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/TaskProcessing/TaskProcessingTest.php | 12 | ||||
-rw-r--r-- | tests/lib/TextProcessing/TextProcessingTest.php | 6 |
2 files changed, 5 insertions, 13 deletions
diff --git a/tests/lib/TaskProcessing/TaskProcessingTest.php b/tests/lib/TaskProcessing/TaskProcessingTest.php index ac9dec1cd1d..3b671c80fef 100644 --- a/tests/lib/TaskProcessing/TaskProcessingTest.php +++ b/tests/lib/TaskProcessing/TaskProcessingTest.php @@ -26,7 +26,6 @@ use OCP\IDBConnection; 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 @@ class TaskProcessingTest extends \Test\TestCase { $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 @@ class TaskProcessingTest extends \Test\TestCase { $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 db479a7a7b6..9c759e52458 100644 --- a/tests/lib/TextProcessing/TextProcessingTest.php +++ b/tests/lib/TextProcessing/TextProcessingTest.php @@ -86,6 +86,9 @@ class FreePromptProvider implements IProvider { } } +/** + * @group DB + */ class TextProcessingTest extends \Test\TestCase { private IManager $manager; private Coordinator $coordinator; @@ -176,7 +179,8 @@ class TextProcessingTest extends \Test\TestCase { \OC::$server->get(LoggerInterface::class), $this->jobList, $this->taskMapper, - $config + $config, + \OC::$server->get(\OCP\TaskProcessing\IManager::class), ); } |