'testSearchAggregation' =>
[ [ 'aggregations' =>
[ ['name' => 'sum', 'type' => 'sum', 'field' => 'price.gross'
],
],
],
'search',
$ids,
function DEntitySearchResult
$result): void
{ static::
assertCount(4,
$result);
$agg =
$result->
getAggregations()->
get('sum'
);
static::
assertInstanceOf(SumResult::
class,
$agg);
static::
assertEquals(600,
$agg->
getSum());
},
],
'testSearchSort' =>
[ [ 'sort' =>
[['field' => 'id'
]],
],
'search',
$ids,
function DEntitySearchResult
$result): void
{