Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed May 29, 2024
1 parent 9b5587e commit 1418637
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/unit/Providers/OpenAiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IL10N;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;

Expand Down Expand Up @@ -97,7 +96,7 @@ public function testFreePromptProvider(): void {
$this->openAiApiService,
\OC::$server->get(IConfig::class),
$this->openAiSettingsService,
\OC::$server->get(IL10N::class),
$this->createMock(\OCP\IL10N::class),
self::TEST_USER1,
);

Expand Down Expand Up @@ -153,7 +152,7 @@ public function testHeadlineProvider(): void {
$this->openAiApiService,
\OC::$server->get(IConfig::class),
$this->openAiSettingsService,
\OC::$server->get(IL10N::class),
$this->createMock(\OCP\IL10N::class),
self::TEST_USER1,
);

Expand Down Expand Up @@ -209,7 +208,7 @@ public function testSummaryProvider(): void {
$this->openAiApiService,
\OC::$server->get(IConfig::class),
$this->openAiSettingsService,
\OC::$server->get(IL10N::class),
$this->createMock(\OCP\IL10N::class),
self::TEST_USER1,
);

Expand Down

0 comments on commit 1418637

Please sign in to comment.