Skip to content

Commit

Permalink
Update indexing test to work with array responses instead of objects
Browse files Browse the repository at this point in the history
That is what OpenSearch returns.
  • Loading branch information
kasperg committed Jan 2, 2024
1 parent cc46263 commit 40837b7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ private function assertItemIndexed(IndexItem $item): void
'id' => $item->getId(),
]);

$object = $response->asObject();
$source = $object->_source;
$source = $response['_source'];

$this->assertEquals(
$item->getHeight(),
Expand Down

0 comments on commit 40837b7

Please sign in to comment.