File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,16 @@ public function testExport(): void
142
142
/**
143
143
* Verify successful export of product
144
144
*
145
- * @magentoDataFixture Magento/CatalogImportExport/_files/product_export_data_with_html_tag .php
145
+ * @magentoDataFixture Magento/CatalogImportExport/_files/product_export_data_special_chars .php
146
146
* @magentoDbIsolation enabled
147
147
*
148
148
* @return void
149
149
*/
150
150
public function testExportBehaviour (): void
151
151
{
152
+ $ product = $ this ->productRepository ->get ('simple "1" ' );
153
+ $ product ->setDescription ('Description with <h2>this is test page</h2> ' );
154
+ $ product ->save ();
152
155
$ this ->model ->setWriter (
153
156
$ this ->objectManager ->create (
154
157
\Magento \ImportExport \Model \Export \Adapter \Csv::class
@@ -157,9 +160,6 @@ public function testExportBehaviour(): void
157
160
$ exportData = $ this ->model ->export ();
158
161
$ this ->assertStringContainsString ('New Product ' , $ exportData );
159
162
$ this ->assertStringContainsString ('Description with <h2>this is test page</h2> ' , $ exportData );
160
-
161
- $ occurrencesCount = substr_count ($ exportData , 'Description with <h2>this is test page</h2> ' );
162
- $ this ->assertEquals (1 , $ occurrencesCount );
163
163
}
164
164
165
165
/**
You can’t perform that action at this time.
0 commit comments