@@ -702,7 +702,7 @@ public function testAddDocuments(): void
702702 '321 ' ,
703703 ];
704704
705- $ resultIds = $ this ->searchService ->addDocuments ($ documents );
705+ $ resultIds = $ this ->searchService ->addDocuments ($ documents, [ ' content ' ] );
706706
707707 $ this ->assertEqualsCanonicalizing ($ expectedIds , $ resultIds );
708708 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
@@ -713,7 +713,7 @@ public function testAddDocuments(): void
713713 public function testAddDocumentsEmpty (): void
714714 {
715715 // Adding an empty array of documents, we would expect no API calls to be made
716- $ resultIds = $ this ->searchService ->addDocuments ([]);
716+ $ resultIds = $ this ->searchService ->addDocuments ([], [ ' content ' ] );
717717
718718 // We would expect the results to be empty
719719 $ this ->assertEqualsCanonicalizing ([], $ resultIds );
@@ -739,7 +739,7 @@ public function testAddDocument(): void
739739 // Append this mock response to our stack
740740 $ this ->mock ->append (new Response (200 , $ headers , $ body ));
741741
742- $ resultId = $ this ->searchService ->addDocument ($ document );
742+ $ resultId = $ this ->searchService ->addDocument ($ document, [ ' content ' ] );
743743
744744 $ this ->assertEquals ('doc-123 ' , $ resultId );
745745 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
@@ -763,7 +763,7 @@ public function testAddDocumentEmpty(): void
763763 $ this ->mock ->append (new Response (200 , $ headers , $ body ));
764764
765765 // Kinda just checking that the array_shift correctly returns null if no results were presented from Bifrost
766- $ resultId = $ this ->searchService ->addDocument ($ document );
766+ $ resultId = $ this ->searchService ->addDocument ($ document, [ ' content ' ] );
767767
768768 $ this ->assertNull ($ resultId );
769769 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
@@ -819,7 +819,7 @@ public function testRemoveDocuments(): void
819819 '123 ' ,
820820 ];
821821
822- $ resultIds = $ this ->searchService ->addDocuments ($ documents );
822+ $ resultIds = $ this ->searchService ->addDocuments ($ documents, [ ' content ' ] );
823823
824824 $ this ->assertEqualsCanonicalizing ($ expectedIds , $ resultIds );
825825 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
@@ -830,7 +830,7 @@ public function testRemoveDocuments(): void
830830 public function testRemoveDocumentsEmpty (): void
831831 {
832832 // Removing an empty array of documents, we would expect no API calls to be made
833- $ resultIds = $ this ->searchService ->removeDocuments ([]);
833+ $ resultIds = $ this ->searchService ->removeDocuments ([], [ ' content ' ] );
834834
835835 // We would expect the results to be empty
836836 $ this ->assertEqualsCanonicalizing ([], $ resultIds );
@@ -858,7 +858,7 @@ public function testRemoveDocument(): void
858858
859859 $ expectedId = sprintf ('silverstripe_searchservice_tests_fake_dataobjectfake_%s ' , $ documentOne ->ID );
860860
861- $ resultId = $ this ->searchService ->removeDocument ($ document );
861+ $ resultId = $ this ->searchService ->removeDocument ($ document, [ ' content ' ] );
862862
863863 $ this ->assertEquals ($ expectedId , $ resultId );
864864 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
@@ -882,7 +882,7 @@ public function testRemoveDocumentEmpty(): void
882882 $ this ->mock ->append (new Response (200 , $ headers , $ body ));
883883
884884 // Kinda just checking that the array_shift correctly returns null if no results were presented from Bifrost
885- $ resultId = $ this ->searchService ->removeDocument ($ document );
885+ $ resultId = $ this ->searchService ->removeDocument ($ document, [ ' content ' ] );
886886
887887 $ this ->assertNull ($ resultId );
888888 // And make sure nothing is left in our Response Stack. This would indicate that every Request we expect to make
0 commit comments