Skip to content

Commit 8b2c234

Browse files
committed
TASK: Adjust test to nested count value in result
1 parent 5c530a4 commit 8b2c234

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/Unit/Eel/ElasticSearchQueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public function getTotalItemsReturnsZeroByDefault(): void
442442
*/
443443
public function getTotalItemsReturnsTotalHitsIfItExists(): void
444444
{
445-
$this->inject($this->queryBuilder, 'result', ['hits' => ['total' => 123]]);
445+
$this->inject($this->queryBuilder, 'result', ['hits' => ['total' => ['value' => 123]]]);
446446
self::assertSame(123, $this->queryBuilder->getTotalItems());
447447
}
448448

0 commit comments

Comments
 (0)