Skip to content

Commit cbfb8fe

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

File tree

1 file changed

+6
-4
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,26 +2594,28 @@ private function importFile(string $fileName): void
25942594
*
25952595
* @magentoDataFixture mediaImportImageFixture
25962596
* @magentoDataFixture Magento/Catalog/_files/product_with_image.php
2597+
*
2598+
* @return void
25972599
*/
2598-
public function testImagesAreHiddenAfterImport()
2600+
public function testImagesAreHiddenAfterImport(): void
25992601
{
26002602
$expectedActiveImages = [
26012603
[
26022604
'file' => '/m/a/magento_additional_image_one.jpg',
26032605
'label' => 'Additional Image Label One',
2604-
'disabled' => '0'
2606+
'disabled' => '0',
26052607
],
26062608
[
26072609
'file' => '/m/a/magento_additional_image_two.jpg',
26082610
'label' => 'Additional Image Label Two',
2609-
'disabled' => '0'
2611+
'disabled' => '0',
26102612
],
26112613
];
26122614

26132615
$expectedHiddenImage = [
26142616
'file' => '/m/a/magento_image.jpg',
26152617
'label' => 'Image Alt Text',
2616-
'disabled' => '1'
2618+
'disabled' => '1',
26172619
];
26182620
$expectedAllProductImages = array_merge(
26192621
[$expectedHiddenImage],

0 commit comments

Comments
 (0)