Skip to content

Commit 56aaac9

Browse files
pradeep1819devarul
authored andcommitted
ACP2E-1377: HTML tags removed in Page Builder editor after Product Import
1 parent 8935730 commit 56aaac9

File tree

1 file changed

+3
-16
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export

1 file changed

+3
-16
lines changed

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

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -261,24 +261,11 @@ public function testExportSpecialChars(): void
261261

262262
$this->assertCount(4, $rows);
263263
$this->assertEquals('simple "1"', $rows[0]['sku']);
264+
$this->assertEquals('simple_ms_1', $rows[1]['sku']);
265+
$this->assertEquals('simple_ms_2', $rows[2]['sku']);
266+
$this->assertEquals('simple_ms_3', $rows[3]['sku']);
264267
$this->assertEquals('Description with <h2>this is test page</h2>', $rows[0]['description']);
265268
$this->assertStringContainsString('Category with slash\/ symbol', $exportData);
266-
$this->assertFalse($this->hasDuplicateRowsForProducts($rows));
267-
}
268-
269-
/**
270-
* Verify exported data does not contain duplicate rows for product
271-
*
272-
* @param $rows
273-
* @return bool
274-
*/
275-
private function hasDuplicateRowsForProducts($rows): bool
276-
{
277-
$skus = [];
278-
foreach ($rows as $product) {
279-
$skus[] = $product['sku'];
280-
}
281-
return count($skus) !== count(array_flip($skus));
282269
}
283270

284271
/**

0 commit comments

Comments
 (0)