Skip to content

Commit

Permalink
Update UtilitiesTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
PapaRascal2020 committed Oct 2, 2024
1 parent 644ce91 commit e5350bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Unit/UtilitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testSummarize()
$content = 'Some long content';
$expectedResponse = 'summary text';

$utilitiesMock = $this->createMock(OpenAiExtras::class);
$utilitiesMock = $this->createMock(Utilities::class);
$utilitiesMock->method('summarize')->willReturn($expectedResponse);

$this->sidekickMock->method('utilities')->willReturn($utilitiesMock);
Expand All @@ -48,7 +48,7 @@ public function testExtractKeywords()
$text = "This is a text with important keywords.";
$expectedResponse = "text, important, keywords";

$utilitiesMock = $this->createMock(OpenAiExtras::class);
$utilitiesMock = $this->createMock(Utilities::class);
$utilitiesMock->method('extractKeywords')->willReturn($expectedResponse);

$this->sidekickMock->method('utilities')->willReturn($utilitiesMock);
Expand Down Expand Up @@ -84,7 +84,7 @@ public function testGenerateContent()
$prompt = "Write a story about a brave knight.";
$expectedResponse = "Once upon a time, there was a brave knight...";

$utilitiesMock = $this->createMock(OpenAiExtras::class);
$utilitiesMock = $this->createMock(Utilities::class);
$utilitiesMock->method('generateContent')->willReturn($expectedResponse);

$this->sidekickMock->method('utilities')->willReturn($utilitiesMock);
Expand Down

0 comments on commit e5350bc

Please sign in to comment.