Skip to content

Commit 5e5a540

Browse files
committed
ACP2E-1769: Customer Sales Order Item GraphQL Resolver does not honor tax configuration
1 parent adc23e6 commit 5e5a540

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public function testCustomerOrdersSimpleProductWithTaxesAndDiscounts()
168168
]
169169
];
170170
$this->assertResponseFields($customerOrderResponse[0]["payment_methods"], $paymentMethodAssertionMap);
171+
$this->assertEquals(10.75, $customerOrderResponse[0]['items'][0]['product_sale_price']['value']);
171172
// Asserting discounts on order item level
172173
$this->assertEquals(4, $customerOrderResponse[0]['items'][0]['discounts'][0]['amount']['value']);
173174
$this->assertEquals('USD', $customerOrderResponse[0]['items'][0]['discounts'][0]['amount']['currency']);
@@ -1393,7 +1394,13 @@ private function getCustomerOrderQuery($orderNumber): array
13931394
billing_address {
13941395
... address
13951396
}
1396-
items{product_name product_sku quantity_ordered discounts {amount{value currency} label}}
1397+
items{
1398+
product_name
1399+
product_sku
1400+
quantity_ordered
1401+
product_sale_price {value}
1402+
discounts {amount{value currency} label}
1403+
}
13971404
total {
13981405
base_grand_total{value currency}
13991406
grand_total{value currency}

0 commit comments

Comments
 (0)