Skip to content

Commit 152c745

Browse files
committed
fixed a product discovery logic
1 parent c7bda9f commit 152c745

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery/ReadHandlerTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,7 @@ private function getProductInstance(?int $storeId = null): ProductInterface
338338
{
339339
/** @var ProductInterface $product */
340340
$product = $this->productFactory->create();
341-
$product->setData(
342-
$this->productLinkField,
343-
$this->getProduct()->getData($this->productLinkField)
344-
);
345-
341+
$product->setId($this->getProduct()->getId());
346342
if ($storeId) {
347343
$product->setStoreId($storeId);
348344
}

0 commit comments

Comments
 (0)