Skip to content

Commit

Permalink
fix missing mock
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 12, 2024
1 parent 86dd777 commit 0c4ecbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Models/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function test_run(): void
'content' => 'test',
]);

LlmDriverFacade::shouldReceive('driver->chat')->once()->andReturn($firstResponse);
LlmDriverFacade::shouldReceive('driver->setToolType->chat')->once()->andReturn($firstResponse);

$message = Message::factory()->user()->create([
'meta_data' => MetaDataDto::from([
Expand Down Expand Up @@ -110,7 +110,7 @@ public function test_rerun(): void
'content' => 'test',
]);

LlmDriverFacade::shouldReceive('driver->chat')->once()->andReturn($firstResponse);
LlmDriverFacade::shouldReceive('driver->setToolType->chat')->once()->andReturn($firstResponse);

$message = Message::factory()->user()->create([
'chat_id' => $chat->id,
Expand Down

0 comments on commit 0c4ecbd

Please sign in to comment.