Skip to content

Commit 566cb4e

Browse files
committed
MC-35968: Admin: Add items to shopping cart from different sources (advanced checkout)
1 parent a3dc53c commit 566cb4e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Magento\TestFramework\Helper\Bootstrap;
1818
use Magento\TestFramework\Workaround\Override\Fixture\Resolver;
1919

20-
2120
Resolver::getInstance()->requireDataFixture('Magento/Customer/_files/customer.php');
2221
Resolver::getInstance()->requireDataFixture('Magento/Customer/_files/customer_address.php');
2322
Resolver::getInstance()->requireDataFixture('Magento/Catalog/_files/simple_products_not_visible_individually.php');

dev/tests/integration/testsuite/Magento/Wishlist/_files/wishlist_with_disabled_product.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
use Magento\Catalog\Api\ProductRepositoryInterface;
10+
use Magento\Customer\Api\CustomerRepositoryInterface;
1011
use Magento\TestFramework\Helper\Bootstrap;
1112
use Magento\Wishlist\Model\ResourceModel\Wishlist as WishlistResource;
1213
use Magento\Wishlist\Model\Wishlist;
@@ -21,6 +22,9 @@
2122
$wishListResource = $objectManager->get(WishlistResource::class);
2223
/** @var Wishlist $wishlist */
2324
$wishlist = $objectManager->get(WishlistFactory::class)->create();
25+
/** @var CustomerRepositoryInterface $customerRepository */
26+
$customerRepository = $objectManager->get(CustomerRepositoryInterface::class);
27+
$customer = $customerRepository->get('[email protected]');
2428
/** @var ProductRepositoryInterface $productRepository */
2529
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
2630
$productRepository->cleanCache();

dev/tests/integration/testsuite/Magento/Wishlist/_files/wishlist_with_not_visible_product.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
use Magento\Catalog\Api\ProductRepositoryInterface;
10+
use Magento\Customer\Api\CustomerRepositoryInterface;
1011
use Magento\TestFramework\Helper\Bootstrap;
1112
use Magento\Wishlist\Model\ResourceModel\Wishlist as WishlistResource;
1213
use Magento\Wishlist\Model\Wishlist;
@@ -24,6 +25,9 @@
2425
/** @var ProductRepositoryInterface $productRepository */
2526
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
2627
$productRepository->cleanCache();
28+
/** @var CustomerRepositoryInterface $customerRepository */
29+
$customerRepository = $objectManager->get(CustomerRepositoryInterface::class);
30+
$customer = $customerRepository->get('[email protected]');
2731
$product = $productRepository->get('simple_not_visible_1');
2832
$wishList->loadByCustomerId($customer->getId(), true);
2933
$item = $wishList->addNewItem($product);

0 commit comments

Comments
 (0)