diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-08-03 00:20:35 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-08-09 10:40:51 +0200 |
commit | 4bae251bafb9952628a0ebe2d32f4165983ed8ca (patch) | |
tree | e5b2b7137dae43c1b11b57db6e6c3951534b13bf /tests | |
parent | 2d9a064a5e83ddcfa74d691f3949119fd91319c1 (diff) | |
download | nextcloud-server-4bae251bafb9952628a0ebe2d32f4165983ed8ca.tar.gz nextcloud-server-4bae251bafb9952628a0ebe2d32f4165983ed8ca.zip |
fix: missing argument for TextProcessing Manager
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/TextProcessing/TextProcessingTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/TextProcessing/TextProcessingTest.php b/tests/lib/TextProcessing/TextProcessingTest.php index 797571019ce..790593bac23 100644 --- a/tests/lib/TextProcessing/TextProcessingTest.php +++ b/tests/lib/TextProcessing/TextProcessingTest.php @@ -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 ); } |