Skip to content

Commit 4f19d03

Browse files
Corrected Mutation Query for SetShippingMethodsOnCartTest
1 parent 9d231d1 commit 4f19d03

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,29 +113,28 @@ public function testSetMultipleShippingMethods()
113113
* @param string $maskedQuoteId
114114
* @param string $shippingMethodCode
115115
* @param string $shippingCarrierCode
116-
* @param string $shippingAddressId
116+
* @param int $shippingAddressId
117117
* @return string
118118
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
119119
*/
120120
private function prepareMutationQuery(
121121
string $maskedQuoteId,
122122
string $shippingMethodCode,
123123
string $shippingCarrierCode,
124-
string $shippingAddressId
124+
int $shippingAddressId
125125
) : string {
126126
return <<<QUERY
127127
mutation {
128128
setShippingMethodsOnCart(input:
129129
{
130130
cart_id: "$maskedQuoteId",
131-
shipping_addresses: [{
131+
shipping_methods: [{
132132
cart_address_id: $shippingAddressId
133-
shipping_method: {
134-
method_code: "$shippingMethodCode"
135-
carrier_code: "$shippingCarrierCode"
136-
}
133+
carrier_code: "$shippingCarrierCode"
134+
method_code: "$shippingMethodCode"
137135
}]
138-
}) {
136+
}) {
137+
139138
cart {
140139
shipping_addresses {
141140
selected_shipping_method {

0 commit comments

Comments
 (0)