diff --git a/tests/Unit/TypesenseEngineTest.php b/tests/Unit/TypesenseEngineTest.php index e7308aac..a260c414 100644 --- a/tests/Unit/TypesenseEngineTest.php +++ b/tests/Unit/TypesenseEngineTest.php @@ -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);