Skip to content

Commit 1cb0fde

Browse files
author
OlgaVasyltsun
committed
MC-20449: [Integration Test]Hide product images via hide_from_product_page attribute during import CSV
1 parent dec4f2a commit 1cb0fde

File tree

1 file changed

+2
-3
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import

1 file changed

+2
-3
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,6 @@ private function importFile(string $fileName): void
25922592
/**
25932593
* Hide product images via hide_from_product_page attribute during import CSV.
25942594
*
2595-
* @magentoAppIsolation enabled
25962595
* @magentoDataFixture mediaImportImageFixture
25972596
* @magentoDataFixture Magento/Catalog/_files/product_with_image.php
25982597
*/
@@ -2630,9 +2629,9 @@ public function testImagesAreHiddenAfterImport()
26302629

26312630
if (is_array($productMediaData['images'])) {
26322631
$allProductImages = $productMediaData['images'];
2633-
$this->assertCount(3, $productMediaData['images'], 'Images are imported incorrect');
2632+
$this->assertCount(3, $allProductImages, 'Images are imported incorrect');
26342633

2635-
foreach($productMediaData['images'] as $image) {
2634+
foreach ($allProductImages as $image) {
26362635
$actualAllProductImages[] = [
26372636
'file' => $image['file'],
26382637
'label' => $image['label'],

0 commit comments

Comments
 (0)