diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2023-08-03 13:03:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 13:03:41 +0200 |
commit | 9e096ef430b188793d0ce8865fd57de44d495896 (patch) | |
tree | 47ad5c60135a2b39e3c1363955dd80ab168f1ac1 | |
parent | 2e030582b3a156688c7f5d43de39275de2e41894 (diff) | |
parent | 0098af3b98afca8084acc0c2a84c7540560807c1 (diff) | |
download | nextcloud-server-9e096ef430b188793d0ce8865fd57de44d495896.tar.gz nextcloud-server-9e096ef430b188793d0ce8865fd57de44d495896.zip |
Merge pull request #39684 from nextcloud/fix/noid/missing-argument-for-text-processing-test
fix: missing argument for TextProcessing Manager
-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 ); } |