Skip to content

Commit c7da38b

Browse files
committed
Updates.
1 parent 3006409 commit c7da38b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ protected function setUp()
5656
public function testSetOfflineShippingMethod(string $carrierCode, string $methodCode, float $amount, string $label)
5757
{
5858
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
59-
$quoteAddressId = $this->getQuoteShippingAddressIdByReservedQuoteId->execute('test_quote');
6059

6160
$query = $this->getQuery(
6261
$maskedQuoteId,
6362
$methodCode,
64-
$carrierCode,
65-
$quoteAddressId
63+
$carrierCode
6664
);
6765
$response = $this->graphQlMutation($query);
6866

@@ -103,22 +101,19 @@ public function offlineShippingMethodDataProvider(): array
103101
* @param string $maskedQuoteId
104102
* @param string $shippingMethodCode
105103
* @param string $shippingCarrierCode
106-
* @param int $shippingAddressId
107104
* @return string
108105
*/
109106
private function getQuery(
110107
string $maskedQuoteId,
111108
string $shippingMethodCode,
112-
string $shippingCarrierCode,
113-
int $shippingAddressId
109+
string $shippingCarrierCode
114110
): string {
115111
return <<<QUERY
116112
mutation {
117113
setShippingMethodsOnCart(input:
118114
{
119115
cart_id: "$maskedQuoteId",
120116
shipping_methods: [{
121-
cart_address_id: $shippingAddressId
122117
carrier_code: "$shippingCarrierCode"
123118
method_code: "$shippingMethodCode"
124119
}]

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,11 @@ public function testSetShippingMethodOnCartWithSimpleProduct()
5151
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
5252
$carrierCode = 'flatrate';
5353
$methodCode = 'flatrate';
54-
$quoteAddressId = $this->getQuoteShippingAddressIdByReservedQuoteId->execute('test_quote');
5554

5655
$query = $this->getQuery(
5756
$maskedQuoteId,
5857
$methodCode,
59-
$carrierCode,
60-
$quoteAddressId
58+
$carrierCode
6159
);
6260
$response = $this->graphQlMutation($query);
6361

@@ -425,7 +423,6 @@ private function getQuery(
425423
{
426424
cart_id: "$maskedQuoteId",
427425
shipping_methods: [{
428-
cart_address_id: $shippingAddressId
429426
carrier_code: "$shippingCarrierCode"
430427
method_code: "$shippingMethodCode"
431428
}]

0 commit comments

Comments
 (0)