Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(taskprocessing): fix tests
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Aug 30, 2024
commit 03b3d03b466b52033e5f63349aa7b570bb5a2fe2
12 changes: 0 additions & 12 deletions tests/lib/TaskProcessing/TaskProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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),
Expand Down
6 changes: 5 additions & 1 deletion tests/lib/TextProcessing/TextProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function getTaskType(): string {
}
}

/**
* @group DB
*/
class TextProcessingTest extends \Test\TestCase {
private IManager $manager;
private Coordinator $coordinator;
Expand Down Expand Up @@ -176,7 +179,8 @@ protected function setUp(): void {
\OC::$server->get(LoggerInterface::class),
$this->jobList,
$this->taskMapper,
$config
$config,
\OC::$server->get(\OCP\TaskProcessing\IManager::class),
);
}

Expand Down