Skip to content

Commit 153a236

Browse files
committed
fixed test case with placing simple product order
1 parent f3c387f commit 153a236

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Downloadable/CustomerDownloadableProductsTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,21 @@ public function testCustomerHasNoOrders()
9191
/**
9292
* @magentoApiDataFixture Magento/Customer/_files/customer.php
9393
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
94+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php
95+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_payment_methods.php
9496
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
9597
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
96-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_payment_methods.php
98+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
9799
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
100+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_flatrate_shipping_method.php
98101
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_checkmo_payment_method.php
99102
*/
100103
public function testCustomerHasNoDownloadableProducts()
101104
{
105+
$quote = $this->quoteFactory->create();
106+
$this->quoteResource->load($quote, 'test_quote', 'reserved_order_id');
107+
$this->cartManagement->placeOrder($quote->getId());
108+
102109
$query = $this->getQuery();
103110
$response = $this->graphQlQuery($query, [], '', $this->getHeaderMap());
104111

0 commit comments

Comments
 (0)