File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -261,24 +261,11 @@ public function testExportSpecialChars(): void
261
261
262
262
$ this ->assertCount (4 , $ rows );
263
263
$ 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 ' ]);
264
267
$ this ->assertEquals ('Description with <h2>this is test page</h2> ' , $ rows [0 ]['description ' ]);
265
268
$ 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 ));
282
269
}
283
270
284
271
/**
You can’t perform that action at this time.
0 commit comments