Skip to content

Commit 7b80d61

Browse files
committed
magento/graphql-ce#542: Replace deprecated Magento/Checkout/_files/quote_with_address_saved.php fixture in SetOfflineShippingMethodsOnCartTest
1 parent 212a533 commit 7b80d61

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ protected function setUp()
5252
}
5353

5454
/**
55-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
55+
* @magentoApiDataFixture Magento/Customer/_files/customer.php
56+
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
57+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
58+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
59+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
5660
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php
5761
* @magentoApiDataFixture Magento/OfflineShipping/_files/tablerates_weight.php
5862
*
@@ -67,7 +71,7 @@ public function testSetOfflineShippingMethod(string $carrierCode, string $method
6771
$quote = $this->quoteFactory->create();
6872
$this->quoteResource->load(
6973
$quote,
70-
'test_order_1',
74+
'test_quote',
7175
'reserved_order_id'
7276
);
7377
$maskedQuoteId = $this->quoteIdToMaskedId->execute((int)$quote->getId());
@@ -102,15 +106,19 @@ public function offlineShippingMethodDataProvider()
102106
}
103107

104108
/**
105-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
109+
* @magentoApiDataFixture Magento/Customer/_files/customer.php
110+
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
111+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
112+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
113+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
106114
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php
107115
*/
108116
public function testSetShippingMethodTwiceInOneRequest()
109117
{
110118
$quote = $this->quoteFactory->create();
111119
$this->quoteResource->load(
112120
$quote,
113-
'test_order_1',
121+
'test_quote',
114122
'reserved_order_id'
115123
);
116124
$shippingAddress = $quote->getShippingAddress();

0 commit comments

Comments
 (0)