Skip to content

Commit e733251

Browse files
committed
MAGETWO-61095: When attempting to place a reorder after a product is disabled, product still gets added to the cart
1 parent 249748c commit e733251

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,10 @@
216216
$product->setOptions($options);
217217

218218
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepositoryFactory */
219-
$productRepository = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class);
219+
$productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
220220
$productRepository->save($product);
221221

222222
$categoryLinkManagement->assignProductToCategories(
223223
$product->getSku(),
224224
[2]
225225
);
226-
$productRepositoryFactory->get('simple', false, null, true);

0 commit comments

Comments
 (0)