Skip to content

Commit 632937a

Browse files
committed
Merge branch 'graphql-develop-prs' of github.com:magento-engcom/magento2ce into graphql-develop-prs
2 parents 6690a49 + 5713858 commit 632937a

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,12 @@ public function testRemoveItemFromCart()
7575

7676
/**
7777
* @magentoApiDataFixture Magento/Customer/_files/customer.php
78-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
7978
* @expectedException \Exception
8079
* @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id"
8180
*/
8281
public function testRemoveItemFromNonExistentCart()
8382
{
84-
$quote = $this->quoteFactory->create();
85-
$this->quoteResource->load($quote, 'test_order_1', 'reserved_order_id');
86-
$itemId = (int)$quote->getItemByProduct($this->productRepository->get('simple'))->getId();
87-
88-
$query = $this->prepareMutationQuery('non_existent_masked_id', $itemId);
83+
$query = $this->prepareMutationQuery('non_existent_masked_id', 1);
8984
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
9085
}
9186

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,12 @@ public function testRemoveCartItemIfQuantityIsZero()
102102

103103
/**
104104
* @magentoApiDataFixture Magento/Customer/_files/customer.php
105-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
106105
* @expectedException \Exception
107106
* @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id"
108107
*/
109108
public function testUpdateItemInNonExistentCart()
110109
{
111-
$quote = $this->quoteFactory->create();
112-
$this->quoteResource->load($quote, 'test_order_with_simple_product_without_address', 'reserved_order_id');
113-
$itemId = (int)$quote->getItemByProduct($this->productRepository->get('simple'))->getId();
114-
115-
$query = $this->getQuery('non_existent_masked_id', $itemId, 2);
110+
$query = $this->getQuery('non_existent_masked_id', 1, 2);
116111
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
117112
}
118113

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,12 @@ public function testRemoveItemFromCart()
6767
}
6868

6969
/**
70-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
7170
* @expectedException \Exception
7271
* @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id"
7372
*/
7473
public function testRemoveItemFromNonExistentCart()
7574
{
76-
$quote = $this->quoteFactory->create();
77-
$this->quoteResource->load($quote, 'test_order_with_simple_product_without_address', 'reserved_order_id');
78-
$itemId = (int)$quote->getItemByProduct($this->productRepository->get('simple'))->getId();
79-
80-
$query = $this->prepareMutationQuery('non_existent_masked_id', $itemId);
75+
$query = $this->prepareMutationQuery('non_existent_masked_id', 1);
8176
$this->graphQlQuery($query);
8277
}
8378

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,12 @@ public function testRemoveCartItemIfQuantityIsZero()
9494
}
9595

9696
/**
97-
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
9897
* @expectedException \Exception
9998
* @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id"
10099
*/
101100
public function testUpdateItemInNonExistentCart()
102101
{
103-
$quote = $this->quoteFactory->create();
104-
$this->quoteResource->load($quote, 'test_order_with_simple_product_without_address', 'reserved_order_id');
105-
$itemId = (int)$quote->getItemByProduct($this->productRepository->get('simple'))->getId();
106-
107-
$query = $this->getQuery('non_existent_masked_id', $itemId, 2);
102+
$query = $this->getQuery('non_existent_masked_id', 1, 2);
108103
$this->graphQlQuery($query);
109104
}
110105

0 commit comments

Comments
 (0)