Skip to content

Commit

Permalink
Typesense Engine -> Update Method Changes:Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karakhanyans committed Dec 29, 2023
1 parent 47ea220 commit b8d4678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/TypesenseEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public function test_update_method(): void
->method('toSearchableArray')
->willReturn(['id' => 1, 'name' => 'Model 1']);

$models[0]->expects($this->once())
->method('scoutMetadata')
->willReturn([]);

// Mock the getOrCreateCollectionFromModel method
$collection = $this->createMock(TypesenseCollection::class);
$documents = $this->createMock(Documents::class);
Expand Down

0 comments on commit b8d4678

Please sign in to comment.