File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
94
94
'product_sale_price ' => [
95
95
'value ' => 10
96
96
],
97
+ 'discounts ' => [],
97
98
'quantity_refunded ' => 1
98
99
],
99
100
[
@@ -102,6 +103,7 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
102
103
'product_sale_price ' => [
103
104
'value ' => 10
104
105
],
106
+ 'discounts ' => [],
105
107
'quantity_refunded ' => 1
106
108
]
107
109
],
@@ -202,6 +204,7 @@ public function testCreditMemoForBundledProductsWithPartialRefund()
202
204
'product_sale_price ' => [
203
205
'value ' => 15
204
206
],
207
+ 'discounts ' => [],
205
208
'quantity_refunded ' => 1
206
209
],
207
210
@@ -311,6 +314,15 @@ public function testCreditMemoForBundleProductWithTaxesAndDiscounts()
311
314
'product_sale_price ' => [
312
315
'value ' => 15
313
316
],
317
+ 'discounts ' => [
318
+ [
319
+ 'amount ' => [
320
+ 'value ' => 3 ,
321
+ 'currency ' => "USD "
322
+ ],
323
+ 'label ' => 'Discount Label for 10% off '
324
+ ]
325
+ ],
314
326
'quantity_refunded ' => 1
315
327
],
316
328
@@ -352,7 +364,7 @@ public function testCreditMemoForBundleProductWithTaxesAndDiscounts()
352
364
],
353
365
'discounts ' => [
354
366
[
355
- 'amount ' => ['value ' => 1 ],
367
+ 'amount ' => ['value ' => 1 ]
356
368
]
357
369
],
358
370
],
@@ -750,6 +762,7 @@ private function getCustomerOrderWithCreditMemoQuery(): array
750
762
product_sale_price {
751
763
value
752
764
}
765
+ discounts { amount{value currency} label }
753
766
quantity_refunded
754
767
}
755
768
total {
You can’t perform that action at this time.
0 commit comments