Skip to content

Commit 3021e86

Browse files
committed
MAGETWO-83204: "Hide from Product Page" option does not work for child of configurable product
1 parent 06d623e commit 3021e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Test/Unit/Helper/DataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ protected function getUsedProducts(array $attributes, array $imageTypes)
466466
$simpleProduct->setData($attributes);
467467

468468
$mediaGalleryEntries = [];
469-
foreach ($imageTypes as $mediaType => $mediaFile) {
469+
foreach (array_keys($imageTypes) as $mediaType) {
470470
$mediaGalleryEntryMock = $this->getMockBuilder(
471471
\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface::class
472472
)->getMock();

0 commit comments

Comments
 (0)