fix: missing argument for TextProcessing Manager

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/39684/head
Daniel Kesselberg 10 months ago
parent 8fa9607f0f
commit 0098af3b98
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614

@ -21,6 +21,7 @@ use OCP\AppFramework\Db\DoesNotExistException;
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;
@ -157,12 +158,18 @@ class TextProcessingTest extends \Test\TestCase {
$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
);
}

Loading…
Cancel
Save