Skip to content

Commit cbf58a5

Browse files
committed
MC-20639: MyAccount :: Order Details :: Refund (creditMemo) Details by Order Number
1 parent ddabec9 commit cbf58a5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/CreditmemoTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
9494
'product_sale_price' => [
9595
'value' => 10
9696
],
97+
'discounts' => [],
9798
'quantity_refunded' => 1
9899
],
99100
[
@@ -102,6 +103,7 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
102103
'product_sale_price' => [
103104
'value' => 10
104105
],
106+
'discounts' => [],
105107
'quantity_refunded' => 1
106108
]
107109
],
@@ -202,6 +204,7 @@ public function testCreditMemoForBundledProductsWithPartialRefund()
202204
'product_sale_price' => [
203205
'value' => 15
204206
],
207+
'discounts' => [],
205208
'quantity_refunded' => 1
206209
],
207210

@@ -311,6 +314,15 @@ public function testCreditMemoForBundleProductWithTaxesAndDiscounts()
311314
'product_sale_price' => [
312315
'value' => 15
313316
],
317+
'discounts' => [
318+
[
319+
'amount' => [
320+
'value' => 3,
321+
'currency' => "USD"
322+
],
323+
'label' => 'Discount Label for 10% off'
324+
]
325+
],
314326
'quantity_refunded' => 1
315327
],
316328

@@ -352,7 +364,7 @@ public function testCreditMemoForBundleProductWithTaxesAndDiscounts()
352364
],
353365
'discounts' => [
354366
[
355-
'amount'=> ['value'=> 1],
367+
'amount'=> ['value'=> 1]
356368
]
357369
],
358370
],
@@ -750,6 +762,7 @@ private function getCustomerOrderWithCreditMemoQuery(): array
750762
product_sale_price {
751763
value
752764
}
765+
discounts { amount{value currency} label }
753766
quantity_refunded
754767
}
755768
total {

0 commit comments

Comments
 (0)