Skip to content

Commit 3d097e4

Browse files
committed
MC-42781: [Magento Cloud][Premier Support] Graphql request can add product to cart that is NOT assigned to a website of a multi site store
1 parent 799d276 commit 3d097e4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev/tests/integration/testsuite/Magento/Checkout/_files/active_quote_not_default_website.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
use Magento\TestFramework\Workaround\Override\Fixture\Resolver;
8+
9+
Resolver::getInstance()->requireDataFixture('Magento/Store/_files/second_website_with_two_stores.php');
10+
711
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
812

913
$storeRepository = $objectManager->get(\Magento\Store\Api\StoreRepositoryInterface::class);

dev/tests/integration/testsuite/Magento/Checkout/_files/active_quote_not_default_website_rollback.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
use Magento\TestFramework\Workaround\Override\Fixture\Resolver;
8+
79
$quote = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
810
->create(\Magento\Quote\Model\Quote::class);
911
$quote->load('test_order_2', 'reserved_order_id')
1012
->delete();
13+
14+
Resolver::getInstance()->requireDataFixture('Magento/Store/_files/second_website_with_two_stores_rollback.php');

0 commit comments

Comments
 (0)