@@ -83,22 +83,47 @@ protected function setUp(): void
83
83
public function testTaxTitleOnPlaceOrder (): void
84
84
{
85
85
$ maskedQuoteId = $ this ->fixtures ->get ('quoteIdMask ' )->getMaskedId ();
86
- $ headerMap = $ this ->getCustomerAuthHeaders ($ this ->fixtures ->get ('customer ' )->getEmail ());
86
+ $ customerAuthHeaders = $ this ->getCustomerAuthHeaders ($ this ->fixtures ->get ('customer ' )->getEmail ());
87
87
88
88
//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
+ );
90
95
91
96
//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
+ );
93
103
94
104
//set shipping method on cart
95
- $ this ->graphQlMutation ($ this ->getShippingMethodMutation ($ maskedQuoteId ), [], '' , $ headerMap );
105
+ $ this ->graphQlMutation (
106
+ $ this ->getShippingMethodMutation ($ maskedQuoteId ),
107
+ [],
108
+ '' ,
109
+ $ customerAuthHeaders
110
+ );
96
111
97
112
//set payment method on cart
98
- $ this ->graphQlMutation ($ this ->getPaymentMethodMutation ($ maskedQuoteId ), [], '' , $ headerMap );
113
+ $ this ->graphQlMutation (
114
+ $ this ->getPaymentMethodMutation ($ maskedQuoteId ),
115
+ [],
116
+ '' ,
117
+ $ customerAuthHeaders
118
+ );
99
119
100
120
//place order
101
- $ orderResponse = $ this ->graphQlMutation ($ this ->getPlaceOrderMutation ($ maskedQuoteId ), [], '' , $ headerMap );
121
+ $ orderResponse = $ this ->graphQlMutation (
122
+ $ this ->getPlaceOrderMutation ($ maskedQuoteId ),
123
+ [],
124
+ '' ,
125
+ $ customerAuthHeaders
126
+ );
102
127
103
128
//assert tax title
104
129
self ::assertNotNull ($ orderResponse ['placeOrder ' ]['orderV2 ' ]['total ' ]['taxes ' ][0 ]['title ' ]);
0 commit comments