@@ -69,7 +69,7 @@ public function testPlaceOrder()
69
69
$ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ($ reservedOrderId );
70
70
71
71
$ query = $ this ->getQuery ($ maskedQuoteId );
72
- $ response = $ this ->graphQlQuery ($ query );
72
+ $ response = $ this ->graphQlMutation ($ query );
73
73
74
74
self ::assertArrayHasKey ('placeOrder ' , $ response );
75
75
self ::assertArrayHasKey ('order_id ' , $ response ['placeOrder ' ]['order ' ]);
@@ -94,7 +94,7 @@ public function testPlaceOrderWithNoEmail()
94
94
$ query = $ this ->getQuery ($ maskedQuoteId );
95
95
96
96
self ::expectExceptionMessage ("Guest email for cart is missing. Please enter " );
97
- $ this ->graphQlQuery ($ query );
97
+ $ this ->graphQlMutation ($ query );
98
98
}
99
99
100
100
/**
@@ -111,7 +111,7 @@ public function testPlaceOrderWithNoItemsInCart()
111
111
'Unable to place order: A server error stopped your order from being placed. ' .
112
112
'Please try to place your order again '
113
113
);
114
- $ this ->graphQlQuery ($ query );
114
+ $ this ->graphQlMutation ($ query );
115
115
}
116
116
117
117
/**
@@ -129,7 +129,7 @@ public function testPlaceOrderWithNoShippingAddress()
129
129
self ::expectExceptionMessage (
130
130
'Unable to place order: Some addresses can \'t be used due to the configurations for specific countries '
131
131
);
132
- $ this ->graphQlQuery ($ query );
132
+ $ this ->graphQlMutation ($ query );
133
133
}
134
134
135
135
/**
@@ -148,7 +148,7 @@ public function testPlaceOrderWithNoShippingMethod()
148
148
self ::expectExceptionMessage (
149
149
'Unable to place order: The shipping method is missing. Select the shipping method and try again '
150
150
);
151
- $ this ->graphQlQuery ($ query );
151
+ $ this ->graphQlMutation ($ query );
152
152
}
153
153
154
154
/**
@@ -169,7 +169,7 @@ public function testPlaceOrderWithNoBillingAddress()
169
169
self ::expectExceptionMessageRegExp (
170
170
'/Unable to place order: Please check the billing address information*/ '
171
171
);
172
- $ this ->graphQlQuery ($ query );
172
+ $ this ->graphQlMutation ($ query );
173
173
}
174
174
175
175
/**
@@ -189,7 +189,7 @@ public function testPlaceOrderWithNoPaymentMethod()
189
189
$ query = $ this ->getQuery ($ maskedQuoteId );
190
190
191
191
self ::expectExceptionMessage ('Unable to place order: Enter a valid payment method and try again ' );
192
- $ this ->graphQlQuery ($ query );
192
+ $ this ->graphQlMutation ($ query );
193
193
}
194
194
195
195
/**
@@ -210,7 +210,7 @@ public function testPlaceOrderWithOutOfStockProduct()
210
210
$ query = $ this ->getQuery ($ maskedQuoteId );
211
211
212
212
self ::expectExceptionMessage ('Unable to place order: Some of the products are out of stock ' );
213
- $ this ->graphQlQuery ($ query );
213
+ $ this ->graphQlMutation ($ query );
214
214
}
215
215
216
216
/**
@@ -233,7 +233,7 @@ public function testPlaceOrderOfCustomerCart()
233
233
$ query = $ this ->getQuery ($ maskedQuoteId );
234
234
235
235
self ::expectExceptionMessageRegExp ('/The current user cannot perform operations on cart*/ ' );
236
- $ this ->graphQlQuery ($ query );
236
+ $ this ->graphQlMutation ($ query );
237
237
}
238
238
239
239
/**
0 commit comments