aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/TaskProcessing/TaskProcessingTest.php14
-rw-r--r--tests/lib/TextProcessing/TextProcessingTest.php6
2 files changed, 6 insertions, 14 deletions
diff --git a/tests/lib/TaskProcessing/TaskProcessingTest.php b/tests/lib/TaskProcessing/TaskProcessingTest.php
index ac9dec1cd1d..0fb281a0533 100644
--- a/tests/lib/TaskProcessing/TaskProcessingTest.php
+++ b/tests/lib/TaskProcessing/TaskProcessingTest.php
@@ -3,7 +3,7 @@
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-namespace Test\TextProcessing;
+namespace Test\TaskProcessing;
use OC\AppFramework\Bootstrap\Coordinator;
use OC\AppFramework\Bootstrap\RegistrationContext;
@@ -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),
);
}