From 5dcaf0533e6d598f65432746359e8037560ab7ea Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 20 Mar 2024 21:30:38 +0100 Subject: [PATCH] [ECP-8748] Update unit tests --- Test/Unit/Helper/ChargedCurrencyTest.php | 33 ++++++++++++++++++------ 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Test/Unit/Helper/ChargedCurrencyTest.php b/Test/Unit/Helper/ChargedCurrencyTest.php index 183a5975d..77e5ffd0a 100755 --- a/Test/Unit/Helper/ChargedCurrencyTest.php +++ b/Test/Unit/Helper/ChargedCurrencyTest.php @@ -192,12 +192,14 @@ protected function setUp(): void 'getBasePrice', 'getBaseDiscountAmount', 'getBaseTaxAmount', + 'getBaseRowTotal', 'getRowTotal', 'getDiscountAmount', 'getTaxAmount', 'getBasePriceInclTax', 'getPriceInclTax', - 'getRowTotalInclTax' + 'getRowTotalInclTax', + 'getBaseRowTotalInclTax' ] ); @@ -208,13 +210,15 @@ protected function setUp(): void 'getBaseDiscountAmount' => self::AMOUNT_CURRENCY['base']['discountAmount'], 'getBaseTaxAmount' => self::AMOUNT_CURRENCY['base']['taxAmount'], 'getRowTotal' => self::AMOUNT_CURRENCY['display']['amount'], + 'getBaseRowTotal' => self::AMOUNT_CURRENCY['base']['amount'], 'getQty' => 1, 'getDiscountAmount' => self::AMOUNT_CURRENCY['display']['discountAmount'], 'getTaxAmount' => self::AMOUNT_CURRENCY['display']['taxAmount'], 'getQuote' => $this->quote, 'getBasePriceInclTax' => self::AMOUNT_CURRENCY['base']['amountIncludingTax'], 'getPriceInclTax' => self::AMOUNT_CURRENCY['display']['amountIncludingTax'], - 'getRowTotalInclTax' => self::AMOUNT_CURRENCY['display']['amountIncludingTax'] + 'getRowTotalInclTax' => self::AMOUNT_CURRENCY['display']['amountIncludingTax'], + 'getBaseRowTotalInclTax' => self::AMOUNT_CURRENCY['base']['amountIncludingTax'], ] ); @@ -231,7 +235,10 @@ protected function setUp(): void 'getGrandTotal', 'getBaseGrandTotal' ], - [] + [ + 'getBaseRowTotal', + 'getRowTotal' + ] ); $this->mockMethods($this->invoice, @@ -244,7 +251,9 @@ protected function setUp(): void 'getShippingAmount' => self::AMOUNT_CURRENCY['display']['amount'], 'getShippingTaxAmount' => self::AMOUNT_CURRENCY['display']['taxAmount'], 'getGrandTotal' => self::AMOUNT_CURRENCY['display']['amount'], - 'getBaseGrandTotal' => self::AMOUNT_CURRENCY['base']['amount'] + 'getBaseGrandTotal' => self::AMOUNT_CURRENCY['base']['amount'], + 'getBaseRowTotal' => self::AMOUNT_CURRENCY['base']['amount'], + 'getRowTotal' => self::AMOUNT_CURRENCY['display']['amount'], ] ); @@ -256,7 +265,9 @@ protected function setUp(): void 'getBaseTaxAmount', 'getPrice', 'getTaxAmount', - 'getQty' + 'getQty', + 'getBaseRowTotal', + 'getRowTotal' ], [] ); @@ -267,7 +278,9 @@ protected function setUp(): void 'getBaseTaxAmount' => self::AMOUNT_CURRENCY['base']['taxAmount'], 'getPrice' => self::AMOUNT_CURRENCY['display']['amount'], 'getTaxAmount' => self::AMOUNT_CURRENCY['display']['taxAmount'], - 'getQty' => 1 + 'getQty' => 1, + 'getBaseRowTotal' => self::AMOUNT_CURRENCY['base']['amount'], + 'getRowTotal' => self::AMOUNT_CURRENCY['display']['amount'] ] ); @@ -319,7 +332,9 @@ protected function setUp(): void 'getCreditMemo', 'getBaseTaxAmount', 'getTaxAmount', - 'getQty' + 'getQty', + 'getBaseRowTotal', + 'getRowTotal' ], [ 'getOrder' @@ -333,7 +348,9 @@ protected function setUp(): void 'getBaseTaxAmount' => self::AMOUNT_CURRENCY['base']['taxAmount'], 'getPrice' => self::AMOUNT_CURRENCY['display']['amount'], 'getTaxAmount' => self::AMOUNT_CURRENCY['display']['taxAmount'], - 'getQty' => 1 + 'getQty' => 1, + 'getBaseRowTotal' => self::AMOUNT_CURRENCY['base']['amount'], + 'getRowTotal' => self::AMOUNT_CURRENCY['display']['amount'] ] );