yield 'Test net default currency' =>
['default', CartPrice::TAX_STATE_NET, 8.0, 0.8
];
yield 'Test net usd currency' =>
['usd', CartPrice::TAX_STATE_NET, 9.0, 0.9
];
} private function rampUpPriceFacade(IdsCollection
$ids, string
$currencyKey, string
$taxState): PriceFacade
{ $entity =
new Entity();
$quantityCalculator =
new QuantityPriceCalculator( new GrossPriceCalculator(new TaxCalculator(),
new CashRounding()),
new NetPriceCalculator(new TaxCalculator(),
new CashRounding()) );
$stubs =
new ScriptPriceStubs( // not necessary for this test
$this->
createMock(Connection::
class),
$quantityCalculator,
new PercentagePriceCalculator(new CashRounding(),
$quantityCalculator,
new PercentageTaxRuleBuilder()),
);
$original =
new CalculatedPrice(10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection(new TaxRuleCollection([new TaxRule(10
)])));