$price =
$this->
rampUpPriceFacade($ids,
$currencyKey,
$taxState);
$update =
new PriceCollection([ new Price(Defaults::CURRENCY, 2, 5, false
),
new Price($ids->
get('usd'
), 1, 4, false
),
]);
$price->
change($update);
static::
assertEquals($unit,
$price->
getUnit());
static::
assertEquals($tax,
$price->
getTaxes()->
getAmount());
} public function testChangeWithPriceFacade(): void
{ $ids =
new IdsCollection([ 'default' => Defaults::CURRENCY,
'usd' => Uuid::
randomHex(),
]);
$price =
$this->
rampUpPriceFacade($ids, 'default', CartPrice::TAX_STATE_GROSS
);