File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2828use Magento \Quote \Test \Fixture \CustomerCart ;
2929use Magento \TestFramework \Fixture \DataFixtureStorage ;
3030use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
31+ use Magento \Tax \Model \Config as TaxConfig ;
32+ use Magento \TestFramework \Fixture \Config ;
3133
3234/**
3335 * Class RetrieveOrdersTest
@@ -107,6 +109,9 @@ public function testGetCustomerOrdersSimpleProductQuery()
107109 $ this ->assertEquals ($ expectedOrderTotal , $ actualOrderTotalFromResponse , 'Totals do not match ' );
108110 }
109111
112+ #[
113+ Config(TaxConfig::XML_PATH_DISPLAY_SALES_PRICE , TaxConfig::DISPLAY_TYPE_INCLUDING_TAX ),
114+ ]
110115 /**
111116 * Verify the customer order with tax, discount with shipping tax class set for calculation setting
112117 *
@@ -169,6 +174,7 @@ public function testCustomerOrdersSimpleProductWithTaxesAndDiscounts()
169174 ];
170175 $ this ->assertResponseFields ($ customerOrderResponse [0 ]["payment_methods " ], $ paymentMethodAssertionMap );
171176 $ this ->assertEquals (10.75 , $ customerOrderResponse [0 ]['items ' ][0 ]['product_sale_price ' ]['value ' ]);
177+ $ this ->assertEquals (7.5 , $ customerOrderResponse [0 ]['total ' ]['taxes ' ][0 ]['rate ' ]);
172178 // Asserting discounts on order item level
173179 $ this ->assertEquals (4 , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['value ' ]);
174180 $ this ->assertEquals ('USD ' , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['currency ' ]);
You can’t perform that action at this time.
0 commit comments