Skip to content

Commit

Permalink
Fix mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 10, 2024
1 parent 85d078d commit cff3dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/ProjectOrchestrateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public function test_tools(): void
$this->assertDatabaseCount('messages', 0);
$this->assertDatabaseCount('tasks', 0);

LlmDriverFacade::shouldReceive('driver->setToolType->chat')
LlmDriverFacade::shouldReceive('driver->setSystemPrompt->setToolType->chat')
->once()
->andReturn(
CompletionResponse::from($response)
);

LlmDriverFacade::shouldReceive('driver->chat')
LlmDriverFacade::shouldReceive('driver->setToolType->setSystemPrompt->chat')
->once()
->andReturn(
CompletionResponse::from($response)
Expand Down

0 comments on commit cff3dc9

Please sign in to comment.