public function testGroupResultOnEmptyData(): void
{ $groupDefinition =
new LineItemGroupDefinition('ID1', 'UNKNOWN', 2, 'PRICE_ASC',
new RuleCollection());
$result =
new LineItemGroupBuilderResult();
static::
assertCount(0,
$result->
getGroupResult($groupDefinition));
} /**
* This test verifies that we get each single group result of a given group definition.
* So our definition is being found 2 times with each 2 line items and their quantities.
*
* This is used to identify each group package later on and
* allows us to e.g. only use the first valid group for discounts
* instead of all found groups for a definition.
*
* @group lineitemgroup
*/