/**
* This test verifies that our property is correctly
* assigned and returned in its getter.
*
* @group lineitemgroup
*/
public function testRulesProperty(): void
{ $ruleEntity =
$this->
buildRuleEntity( $this->
getMinQuantityRule(Uuid::
randomBytes(), 2
) );
$ruleCollection =
new RuleCollection([$ruleEntity]);
$group =
new LineItemGroupDefinition('ID-1', 'COUNT', 2, 'PRICE_ASC',
$ruleCollection);
static::
assertSame($ruleCollection,
$group->
getRules());
}}