From dbb17a93e311659754bfb4cc361972c17e6eb3bf Mon Sep 17 00:00:00 2001 From: Steffen Mahler Date: Mon, 30 Mar 2020 19:35:56 +0200 Subject: [PATCH] fix rounding in taxcest --- tests/unit/Tax/Helpers/TaxCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Tax/Helpers/TaxCest.php b/tests/unit/Tax/Helpers/TaxCest.php index ab5cec0ae..9e1c5be7e 100644 --- a/tests/unit/Tax/Helpers/TaxCest.php +++ b/tests/unit/Tax/Helpers/TaxCest.php @@ -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(