Skip to content

Commit

Permalink
magento/graphql-ce#542: Replace deprecated Magento/Checkout/_files/qu…
Browse files Browse the repository at this point in the history
…ote_with_address_saved.php fixture in SetOfflineShippingMethodsOnCartTest
  • Loading branch information
atwixfirster committed Mar 27, 2019
1 parent 212a533 commit 7b80d61
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ protected function setUp()
}

/**
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
* @magentoApiDataFixture Magento/Customer/_files/customer.php
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php
* @magentoApiDataFixture Magento/OfflineShipping/_files/tablerates_weight.php
*
Expand All @@ -67,7 +71,7 @@ public function testSetOfflineShippingMethod(string $carrierCode, string $method
$quote = $this->quoteFactory->create();
$this->quoteResource->load(
$quote,
'test_order_1',
'test_quote',
'reserved_order_id'
);
$maskedQuoteId = $this->quoteIdToMaskedId->execute((int)$quote->getId());
Expand Down Expand Up @@ -102,15 +106,19 @@ public function offlineShippingMethodDataProvider()
}

/**
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
* @magentoApiDataFixture Magento/Customer/_files/customer.php
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php
*/
public function testSetShippingMethodTwiceInOneRequest()
{
$quote = $this->quoteFactory->create();
$this->quoteResource->load(
$quote,
'test_order_1',
'test_quote',
'reserved_order_id'
);
$shippingAddress = $quote->getShippingAddress();
Expand Down

0 comments on commit 7b80d61

Please sign in to comment.