false,
];
yield 'Reference id with gte operator' =>
[ new LineItem($ids->
get('line-item-id'
), LineItem::PRODUCT_LINE_ITEM_TYPE,
$ids->
get('reference-id'
), 4
),
new LineItemWithQuantityRule(Rule::OPERATOR_GTE,
$ids->
get('reference-id'
), 3
),
true,
];
yield 'Nested line item should be considered' =>
[ (new LineItem($ids->
get('line-item-id'
), LineItem::PRODUCT_LINE_ITEM_TYPE,
$ids->
get('container-id'
), 1
)) ->
addChild(new LineItem($ids->
get('line-item-id'
), LineItem::PRODUCT_LINE_ITEM_TYPE,
$ids->
get('reference-id'
), 1
)),
new LineItemWithQuantityRule(Rule::OPERATOR_EQ,
$ids->
get('reference-id'
), 1
),
true,
];
}}