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 28
28
use Magento \Quote \Test \Fixture \CustomerCart ;
29
29
use Magento \TestFramework \Fixture \DataFixtureStorage ;
30
30
use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
31
+ use Magento \Tax \Model \Config as TaxConfig ;
32
+ use Magento \TestFramework \Fixture \Config ;
31
33
32
34
/**
33
35
* Class RetrieveOrdersTest
@@ -107,6 +109,9 @@ public function testGetCustomerOrdersSimpleProductQuery()
107
109
$ this ->assertEquals ($ expectedOrderTotal , $ actualOrderTotalFromResponse , 'Totals do not match ' );
108
110
}
109
111
112
+ #[
113
+ Config(TaxConfig::XML_PATH_DISPLAY_SALES_PRICE , TaxConfig::DISPLAY_TYPE_INCLUDING_TAX ),
114
+ ]
110
115
/**
111
116
* Verify the customer order with tax, discount with shipping tax class set for calculation setting
112
117
*
@@ -169,6 +174,7 @@ public function testCustomerOrdersSimpleProductWithTaxesAndDiscounts()
169
174
];
170
175
$ this ->assertResponseFields ($ customerOrderResponse [0 ]["payment_methods " ], $ paymentMethodAssertionMap );
171
176
$ this ->assertEquals (10.75 , $ customerOrderResponse [0 ]['items ' ][0 ]['product_sale_price ' ]['value ' ]);
177
+ $ this ->assertEquals (7.5 , $ customerOrderResponse [0 ]['total ' ]['taxes ' ][0 ]['rate ' ]);
172
178
// Asserting discounts on order item level
173
179
$ this ->assertEquals (4 , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['value ' ]);
174
180
$ this ->assertEquals ('USD ' , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['currency ' ]);
You can’t perform that action at this time.
0 commit comments