fix rounding in taxcest

This commit is contained in:
Steffen Mahler 2020-03-30 19:35:56 +02:00
parent c13ae36494
commit dbb17a93e3
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ class TaxCest
'object' => Cart::getCart(),
'expectedTaxRates' => [
(string)round((float)$tax1->tax_rate, 4)
=> round(11 * $product1->price * $tax1->tax_rate / 100, 4),
=> round(11 * $product1->price * $tax1->tax_rate / 100, 2),
(string)round((float)$tax2->tax_rate, 4)
=> round(7 * $product2->price * $tax2->tax_rate / 100, 4),
=> round(7 * $product2->price * $tax2->tax_rate / 100, 2),
],
'expectedTaxTotal' =>
round(