@@ -83,22 +83,47 @@ protected function setUp(): void
8383 public function testTaxTitleOnPlaceOrder (): void
8484 {
8585 $ maskedQuoteId = $ this ->fixtures ->get ('quoteIdMask ' )->getMaskedId ();
86- $ headerMap = $ this ->getCustomerAuthHeaders ($ this ->fixtures ->get ('customer ' )->getEmail ());
86+ $ customerAuthHeaders = $ this ->getCustomerAuthHeaders ($ this ->fixtures ->get ('customer ' )->getEmail ());
8787
8888 //set shipping address to cart (save_in_address_book => true)
89- $ this ->graphQlMutation ($ this ->getSetShippingAddressOnCartMutation ($ maskedQuoteId ), [], '' , $ headerMap );
89+ $ this ->graphQlMutation (
90+ $ this ->getSetShippingAddressOnCartMutation ($ maskedQuoteId ),
91+ [],
92+ '' ,
93+ $ customerAuthHeaders
94+ );
9095
9196 //set billing address to cart same as shipping
92- $ this ->graphQlMutation ($ this ->getBillingAddressMutationSameAsShipping ($ maskedQuoteId ), [], '' , $ headerMap );
97+ $ this ->graphQlMutation (
98+ $ this ->getBillingAddressMutationSameAsShipping ($ maskedQuoteId ),
99+ [],
100+ '' ,
101+ $ customerAuthHeaders
102+ );
93103
94104 //set shipping method on cart
95- $ this ->graphQlMutation ($ this ->getShippingMethodMutation ($ maskedQuoteId ), [], '' , $ headerMap );
105+ $ this ->graphQlMutation (
106+ $ this ->getShippingMethodMutation ($ maskedQuoteId ),
107+ [],
108+ '' ,
109+ $ customerAuthHeaders
110+ );
96111
97112 //set payment method on cart
98- $ this ->graphQlMutation ($ this ->getPaymentMethodMutation ($ maskedQuoteId ), [], '' , $ headerMap );
113+ $ this ->graphQlMutation (
114+ $ this ->getPaymentMethodMutation ($ maskedQuoteId ),
115+ [],
116+ '' ,
117+ $ customerAuthHeaders
118+ );
99119
100120 //place order
101- $ orderResponse = $ this ->graphQlMutation ($ this ->getPlaceOrderMutation ($ maskedQuoteId ), [], '' , $ headerMap );
121+ $ orderResponse = $ this ->graphQlMutation (
122+ $ this ->getPlaceOrderMutation ($ maskedQuoteId ),
123+ [],
124+ '' ,
125+ $ customerAuthHeaders
126+ );
102127
103128 //assert tax title
104129 self ::assertNotNull ($ orderResponse ['placeOrder ' ]['orderV2 ' ]['total ' ]['taxes ' ][0 ]['title ' ]);
0 commit comments