Skip to content

Commit

Permalink
[ECP-8748] Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Demiralp committed Mar 20, 2024
1 parent 437db15 commit 5dcaf05
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions Test/Unit/Helper/ChargedCurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,14 @@ protected function setUp(): void
'getBasePrice',
'getBaseDiscountAmount',
'getBaseTaxAmount',
'getBaseRowTotal',
'getRowTotal',
'getDiscountAmount',
'getTaxAmount',
'getBasePriceInclTax',
'getPriceInclTax',
'getRowTotalInclTax'
'getRowTotalInclTax',
'getBaseRowTotalInclTax'
]
);

Expand All @@ -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'],
]
);

Expand All @@ -231,7 +235,10 @@ protected function setUp(): void
'getGrandTotal',
'getBaseGrandTotal'
],
[]
[
'getBaseRowTotal',
'getRowTotal'
]
);

$this->mockMethods($this->invoice,
Expand All @@ -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'],
]
);

Expand All @@ -256,7 +265,9 @@ protected function setUp(): void
'getBaseTaxAmount',
'getPrice',
'getTaxAmount',
'getQty'
'getQty',
'getBaseRowTotal',
'getRowTotal'
],
[]
);
Expand All @@ -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']
]
);

Expand Down Expand Up @@ -319,7 +332,9 @@ protected function setUp(): void
'getCreditMemo',
'getBaseTaxAmount',
'getTaxAmount',
'getQty'
'getQty',
'getBaseRowTotal',
'getRowTotal'
],
[
'getOrder'
Expand All @@ -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']
]
);

Expand Down

0 comments on commit 5dcaf05

Please sign in to comment.