Skip to content

Commit

Permalink
fix(taskprocessing): fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Aug 29, 2024
1 parent 121b0f0 commit a5218a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
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
3 changes: 2 additions & 1 deletion tests/lib/TextProcessing/TextProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}

Expand Down

0 comments on commit a5218a7

Please sign in to comment.