From ad12557c78a58a70e171d03e60c1f96ddb67c3e2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 15 Mar 2016 15:25:00 +0200 Subject: [PATCH] Fix for tax rates test --- resources/lang/en/texts.php | 1 + tests/acceptance/TaxRatesCest.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index e587699b927f..f53f2471871e 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -1062,6 +1062,7 @@ $LANG = array( 'invalid_card_number' => 'The credit card number is not valid.', 'invalid_expiry' => 'The expiration date is not valid.', 'invalid_cvv' => 'The CVV is not valid.', + 'cost' => 'Cost', ); diff --git a/tests/acceptance/TaxRatesCest.php b/tests/acceptance/TaxRatesCest.php index 051d504ed9cf..7517c5c16557 100644 --- a/tests/acceptance/TaxRatesCest.php +++ b/tests/acceptance/TaxRatesCest.php @@ -30,8 +30,8 @@ class TaxRatesCest $total += round($itemCost * $itemTaxRate / 100, 2); $total += round($itemCost * $invoiceTaxRate / 100, 2); - $itemTaxRate = number_format($itemTaxRate, 2); - $invoiceTaxRate = number_format($invoiceTaxRate, 2); + $itemTaxRate = number_format($itemTaxRate, 3); + $invoiceTaxRate = number_format($invoiceTaxRate, 3); // create tax rates $I->amOnPage('/tax_rates/create');