Skip to content

Commit 72999cb

Browse files
author
Prabhu Ram
committed
MC-19254: Implement the schema changes
- chagning cart prices discount to total_item_discount
1 parent 22d9923 commit 72999cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/CartPromotionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function testCartPromotionsWithCoupons()
315315
'prices' => [
316316
'row_total' => ['value' => $productsInCart[$itemIndex]->getSpecialPrice()*$qty],
317317
'row_total_including_tax' => ['value' => $productsInCart[$itemIndex]->getSpecialPrice()*$qty],
318-
'discount' => ['value' => round(($rowTotal/$sumOfPricesForBothProducts)*5, 2)],
318+
'total_item_discount' => ['value' => round(($rowTotal/$sumOfPricesForBothProducts)*5, 2)],
319319
'discounts' => [
320320
0 =>[
321321
'amount' =>

0 commit comments

Comments
 (0)