Skip to content

Commit 0d26a78

Browse files
committed
GraphQL-423: Test coverage: SetShippingMethodsOnCartTest for Customer
1 parent 0c0e64d commit 0d26a78

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -83,37 +83,6 @@ public function testSetShippingMethodOnCartWithSimpleProduct()
8383
self::assertEquals($methodCode, $shippingAddress['selected_shipping_method']['method_code']);
8484
}
8585

86-
/**
87-
* Shipping address for quote will be created automatically BUT with NULL values (considered that address
88-
* is not set)
89-
*
90-
* @magentoApiDataFixture Magento/Customer/_files/customer.php
91-
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php
92-
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
93-
* @magentoApiDataFixture Magento/Catalog/_files/product_virtual.php
94-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
95-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
96-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_virtual_product.php
97-
*
98-
* @expectedException \Exception
99-
* @expectedExceptionMessage The shipping address is missing. Set the address and try again.
100-
*/
101-
public function testSetShippingMethodOnCartWithSimpleProductAndWithoutAddress()
102-
{
103-
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
104-
$carrierCode = 'flatrate';
105-
$methodCode = 'flatrate';
106-
$quoteAddressId = $this->getQuoteShippingAddressIdByReservedQuoteId->execute('test_quote');
107-
108-
$query = $this->getQuery(
109-
$maskedQuoteId,
110-
$methodCode,
111-
$carrierCode,
112-
$quoteAddressId
113-
);
114-
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
115-
}
116-
11786
/**
11887
* @magentoApiDataFixture Magento/Customer/_files/customer.php
11988
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php

0 commit comments

Comments
 (0)