diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2023-08-07 13:26:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 13:26:39 +0200 |
commit | f099aa2714f163947c9ae678b67ea022c69c3d62 (patch) | |
tree | 7be9449f7682896e67cb09f493ec51af58bdb147 /tests/lib/TextProcessing/TextProcessingTest.php | |
parent | f62711d2ae78d807bbd3675ff26aa8852a18b7c1 (diff) | |
parent | 787caefc9a58cf9cd105454b6b5a2d8046509878 (diff) | |
download | nextcloud-server-f099aa2714f163947c9ae678b67ea022c69c3d62.tar.gz nextcloud-server-f099aa2714f163947c9ae678b67ea022c69c3d62.zip |
Merge branch 'master' into fix/llm-migration-not-executed
Diffstat (limited to 'tests/lib/TextProcessing/TextProcessingTest.php')
-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 1649072ae8c..3bda73e995b 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 ); } |