'quantityStart' => 1,
'quantityEnd' => 2,
]),
]),
]),
[],
];
yield 'Only matching rule ids will be calculated' =>
[ (new PartialEntity())->
assign([ 'taxId' => Uuid::
randomHex(),
'prices' =>
new ProductPriceCollection([ (new ProductPriceEntity())->
assign([ '_uniqueIdentifier' => Uuid::
randomHex(),
// not inside the context (see above inside mock)
'ruleId' => Defaults::SALES_CHANNEL_TYPE_API,
'price' =>
new PriceCollection([ new Price(Defaults::CURRENCY, 3, 3, false
),
]),
'quantityStart' => 1,
'quantityEnd' => null,
]),
]),
]),