Skip to content

Commit c81353d

Browse files
committed
GraphQL-564: [Checkout coverage] setGuestEmailOnCart mutation
1 parent 58338f0 commit c81353d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/PlaceOrderTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testPlaceOrder()
6969
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute($reservedOrderId);
7070

7171
$query = $this->getQuery($maskedQuoteId);
72-
$response = $this->graphQlQuery($query);
72+
$response = $this->graphQlMutation($query);
7373

7474
self::assertArrayHasKey('placeOrder', $response);
7575
self::assertArrayHasKey('order_id', $response['placeOrder']['order']);
@@ -94,7 +94,7 @@ public function testPlaceOrderWithNoEmail()
9494
$query = $this->getQuery($maskedQuoteId);
9595

9696
self::expectExceptionMessage("Guest email for cart is missing. Please enter");
97-
$this->graphQlQuery($query);
97+
$this->graphQlMutation($query);
9898
}
9999

100100
/**
@@ -111,7 +111,7 @@ public function testPlaceOrderWithNoItemsInCart()
111111
'Unable to place order: A server error stopped your order from being placed. ' .
112112
'Please try to place your order again'
113113
);
114-
$this->graphQlQuery($query);
114+
$this->graphQlMutation($query);
115115
}
116116

117117
/**
@@ -129,7 +129,7 @@ public function testPlaceOrderWithNoShippingAddress()
129129
self::expectExceptionMessage(
130130
'Unable to place order: Some addresses can\'t be used due to the configurations for specific countries'
131131
);
132-
$this->graphQlQuery($query);
132+
$this->graphQlMutation($query);
133133
}
134134

135135
/**
@@ -148,7 +148,7 @@ public function testPlaceOrderWithNoShippingMethod()
148148
self::expectExceptionMessage(
149149
'Unable to place order: The shipping method is missing. Select the shipping method and try again'
150150
);
151-
$this->graphQlQuery($query);
151+
$this->graphQlMutation($query);
152152
}
153153

154154
/**
@@ -169,7 +169,7 @@ public function testPlaceOrderWithNoBillingAddress()
169169
self::expectExceptionMessageRegExp(
170170
'/Unable to place order: Please check the billing address information*/'
171171
);
172-
$this->graphQlQuery($query);
172+
$this->graphQlMutation($query);
173173
}
174174

175175
/**
@@ -189,7 +189,7 @@ public function testPlaceOrderWithNoPaymentMethod()
189189
$query = $this->getQuery($maskedQuoteId);
190190

191191
self::expectExceptionMessage('Unable to place order: Enter a valid payment method and try again');
192-
$this->graphQlQuery($query);
192+
$this->graphQlMutation($query);
193193
}
194194

195195
/**
@@ -210,7 +210,7 @@ public function testPlaceOrderWithOutOfStockProduct()
210210
$query = $this->getQuery($maskedQuoteId);
211211

212212
self::expectExceptionMessage('Unable to place order: Some of the products are out of stock');
213-
$this->graphQlQuery($query);
213+
$this->graphQlMutation($query);
214214
}
215215

216216
/**
@@ -233,7 +233,7 @@ public function testPlaceOrderOfCustomerCart()
233233
$query = $this->getQuery($maskedQuoteId);
234234

235235
self::expectExceptionMessageRegExp('/The current user cannot perform operations on cart*/');
236-
$this->graphQlQuery($query);
236+
$this->graphQlMutation($query);
237237
}
238238

239239
/**

0 commit comments

Comments
 (0)