/**
* @param RuleEntity[] $rules
*/
private function createSetGroup(string
$packagerKey, float
$value, string
$sorterKey, array
$rules): PromotionSetGroupEntity
{ $group =
new PromotionSetGroupEntity();
$group->
setId(Uuid::
randomBytes());
$group->
setPackagerKey($packagerKey);
$group->
setValue($value);
$group->
setSorterKey($sorterKey);
$group->
setSetGroupRules(new RuleCollection($rules));
return $group;
} private function createSetGroupWithRuleFixture(string
$groupId, string
$packagerKey, float
$value, string
$sorterKey, string
$promotionId, string
$ruleId, ContainerInterface
$container): string
{ $context =
$container->
get(SalesChannelContextFactory::
class)->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
$repository =
$container->
get('promotion_setgroup.repository'
);