Skip to content

Commit

Permalink
Merge pull request #39684 from nextcloud/fix/noid/missing-argument-fo…
Browse files Browse the repository at this point in the history
…r-text-processing-test

fix: missing argument for TextProcessing Manager
  • Loading branch information
julien-nc authored Aug 3, 2023
2 parents 2e03058 + 0098af3 commit 9e096ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/lib/TextProcessing/TextProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Common\Exception\NotFoundException;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\IServerContainer;
use OCP\TextProcessing\Events\TaskFailedEvent;
use OCP\TextProcessing\Events\TaskSuccessfulEvent;
Expand Down Expand Up @@ -157,12 +158,18 @@ protected function setUp(): void {
$this->jobList->expects($this->any())->method('add')->willReturnCallback(function () {
});

$config = $this->createMock(IConfig::class);
$config->method('getAppValue')
->with('core', 'ai.textprocessing_provider_preferences', '')
->willReturn('');

$this->manager = new Manager(
$this->serverContainer,
$this->coordinator,
\OC::$server->get(LoggerInterface::class),
$this->jobList,
$this->taskMapper,
$config
);
}

Expand Down

0 comments on commit 9e096ef

Please sign in to comment.