Skip to content

Commit ac6cc1c

Browse files
author
Elena Marchenko
committed
MTA-559: Updated grand total assert on order review page
1 parent 29a1716 commit ac6cc1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalOrderReview.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ class AssertGrandTotalOrderReview extends AbstractConstraint
1818
* Assert that Order Grand Total is correct on checkoutOnePage
1919
*
2020
* @param CheckoutOnepage $checkoutOnepage
21-
* @param array $prices
21+
* @param string $grandTotal
2222
* @return void
2323
*/
24-
public function processAssert(CheckoutOnepage $checkoutOnepage, array $prices)
24+
public function processAssert(CheckoutOnepage $checkoutOnepage, $grandTotal)
2525
{
2626
$checkoutReviewGrandTotal = $checkoutOnepage->getReviewBlock()->getGrandTotal();
2727

2828
\PHPUnit_Framework_Assert::assertEquals(
2929
$checkoutReviewGrandTotal,
30-
number_format($prices['grandTotal'], 2),
31-
"Grand Total price: $checkoutReviewGrandTotal not equals with price from data set: " . $prices['grandTotal']
30+
number_format($grandTotal, 2),
31+
"Grand Total price: $checkoutReviewGrandTotal not equals with price from data set: " . $grandTotal
3232
);
3333
}
3434

0 commit comments

Comments
 (0)