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
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 {
You can’t perform that action at this time.
0 commit comments