static::
assertEquals($tax->
getTax(),
$actual->
getTax());
} } public static function processorProvider(): \Generator
{ $context = Generator::
createSalesChannelContext();
$context->
setTaxState(CartPrice::TAX_STATE_GROSS
);
$context->
setItemRounding(new CashRoundingConfig(2, 0.01, true
));
yield 'Remove discounts when cart is empty' =>
[ [new PercentageItem(10, self::DISCOUNT_ID
)],
null,
];
yield 'Remove discount when cart gets negative' =>
[ [ new CalculatedItem(10,
new HighTaxes(),
$context),
new AbsoluteItem(-20, self::DISCOUNT_ID
),
],
null,
];