Skip to content

Commit 1834026

Browse files
committed
GraphQL-295: [Place order] Place order mutation
-- fixes after merge with mainline
1 parent 98e0f9b commit 1834026

9 files changed

+16
-16
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogInventory/AddProductToCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testAddProductIfQuantityIsNotAvailable()
4343
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
4444

4545
$query = $this->getQuery($maskedQuoteId, $sku, $qty);
46-
$this->graphQlQuery($query);
46+
$this->graphQlMutation($query);
4747
}
4848

4949
/**
@@ -62,7 +62,7 @@ public function testAddMoreProductsThatAllowed()
6262
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
6363

6464
$query = $this->getQuery($maskedQuoteId, $sku, $qty);
65-
$this->graphQlQuery($query);
65+
$this->graphQlMutation($query);
6666
}
6767

6868
/**
@@ -78,7 +78,7 @@ public function testAddSimpleProductToCartWithNegativeQty()
7878
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
7979

8080
$query = $this->getQuery($maskedQuoteId, $sku, $qty);
81-
$this->graphQlQuery($query);
81+
$this->graphQlMutation($query);
8282
}
8383

8484
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/ConfigurableProduct/AddConfigurableProductToCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testAddConfigurableProductToCart()
4141
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
4242

4343
$query = $this->getQuery($maskedQuoteId, $variantSku, $qty);
44-
$response = $this->graphQlQuery($query);
44+
$response = $this->graphQlMutation($query);
4545

4646
$cartItems = $response['addConfigurableProductsToCart']['cart']['items'];
4747
self::assertEquals($qty, $cartItems[0]['qty']);
@@ -61,7 +61,7 @@ public function testAddProductIfQuantityIsNotAvailable()
6161
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
6262

6363
$query = $this->getQuery($maskedQuoteId, $variantSku, $qty);
64-
$this->graphQlQuery($query);
64+
$this->graphQlMutation($query);
6565
}
6666

6767
/**
@@ -77,7 +77,7 @@ public function testAddOutOfStockProduct()
7777
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
7878

7979
$query = $this->getQuery($maskedQuoteId, $variantSku, $qty);
80-
$this->graphQlQuery($query);
80+
$this->graphQlMutation($query);
8181
}
8282

8383
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testAddSimpleProductWithOptions()
8686
}
8787
QUERY;
8888

89-
$response = $this->graphQlQuery($query);
89+
$response = $this->graphQlMutation($query);
9090

9191
self::assertArrayHasKey('items', $response['addSimpleProductsToCart']['cart']);
9292
self::assertCount(1, $response['addSimpleProductsToCart']['cart']);
@@ -148,7 +148,7 @@ public function testAddSimpleProductWithNoRequiredOptionsSet()
148148
'The product\'s required option(s) weren\'t entered. Make sure the options are entered and try again.'
149149
);
150150

151-
$this->graphQlQuery($query);
151+
$this->graphQlMutation($query);
152152
}
153153

154154
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testAddVirtualProductWithOptions()
8686
}
8787
QUERY;
8888

89-
$response = $this->graphQlQuery($query);
89+
$response = $this->graphQlMutation($query);
9090

9191
self::assertArrayHasKey('items', $response['addVirtualProductsToCart']['cart']);
9292
self::assertCount(1, $response['addVirtualProductsToCart']['cart']);
@@ -148,7 +148,7 @@ public function testAddVirtualProductWithNoRequiredOptionsSet()
148148
'The product\'s required option(s) weren\'t entered. Make sure the options are entered and try again.'
149149
);
150150

151-
$this->graphQlQuery($query);
151+
$this->graphQlMutation($query);
152152
}
153153

154154
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetPaymentMethodOnCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function testSetDisabledPaymentOnCart()
221221
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
222222

223223
$query = $this->getQuery($maskedQuoteId, $methodCode);
224-
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
224+
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
225225
}
226226

227227
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingMethodsOnCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public function testSetShippingMethodOnAnEmptyCart()
452452
$carrierCode,
453453
$quoteAddressId
454454
);
455-
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
455+
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
456456
}
457457

458458
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testAddSimpleProductToCart()
4141
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');
4242

4343
$query = $this->getQuery($maskedQuoteId, $sku, $qty);
44-
$response = $this->graphQlQuery($query);
44+
$response = $this->graphQlMutation($query);
4545
self::assertArrayHasKey('cart', $response['addSimpleProductsToCart']);
4646

4747
self::assertEquals($qty, $response['addSimpleProductsToCart']['cart']['items'][0]['qty']);
@@ -61,7 +61,7 @@ public function testAddProductToNonExistentCart()
6161
$maskedQuoteId = 'non_existent_masked_id';
6262

6363
$query = $this->getQuery($maskedQuoteId, $sku, $qty);
64-
$this->graphQlQuery($query);
64+
$this->graphQlMutation($query);
6565
}
6666

6767
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function testSetDisabledPaymentOnCart()
232232
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
233233

234234
$query = $this->getQuery($maskedQuoteId, $methodCode);
235-
$this->graphQlQuery($query);
235+
$this->graphQlMutation($query);
236236
}
237237

238238
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public function testSetShippingMethodOnAnEmptyCart()
403403
$carrierCode,
404404
$quoteAddressId
405405
);
406-
$this->graphQlQuery($query);
406+
$this->graphQlMutation($query);
407407
}
408408

409409
/**

0 commit comments

Comments
 (0)