CodeExplorer assertGroupByExclusion example
public function testSingleGroupBy(): void
{ $criteria =
new Criteria( $this->testData->
getList(['1', '2', '3', '4'
]) );
$criteria->
addGroupField(new FieldGrouping('field1'
));
$ids =
$this->searcher->
search($this->definition,
$criteria, Context::
createDefaultContext());
$this->
assertGroupByExclusion( $this->testData->
get('1'
),
$this->testData->
get('2'
),
$ids );
$this->
assertGroupByExclusion( $this->testData->
get('3'
),
$this->testData->
get('4'
),
$ids );
}