use Shopware\Core\Test\TestDefaults;
use Symfony\Component\DependencyInjection\ContainerInterface;
#[Package('checkout')]
trait PromotionSetGroupTestFixtureBehaviour
{ /**
* @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
{