File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -1595,7 +1595,6 @@ public function testAddUpdateProductWithInvalidUrlKeys() : void
1595
1595
/**
1596
1596
* Make sure the non existing image in the csv file won't erase the qty key of the existing products.
1597
1597
*
1598
- * @magentoDataFixture Magento/CatalogImportExport/Model/Import/_files/products_to_import_with_non_existing_image.csv
1599
1598
* @magentoDbIsolation enabled
1600
1599
* @magentoAppIsolation enabled
1601
1600
*/
@@ -1604,24 +1603,8 @@ public function testImportWithNonExistingImage()
1604
1603
$ products = [
1605
1604
'simple_new ' => 100 ,
1606
1605
];
1607
- $ filesystem = $ this ->objectManager ->create (\Magento \Framework \Filesystem::class);
1608
- $ directory = $ filesystem ->getDirectoryWrite (DirectoryList::ROOT );
1609
- $ source = $ this ->objectManager ->create (
1610
- \Magento \ImportExport \Model \Import \Source \Csv::class,
1611
- [
1612
- 'file ' => __DIR__ . '/_files/products_to_import_with_non_existing_image.csv ' ,
1613
- 'directory ' => $ directory
1614
- ]
1615
- );
1616
1606
1617
- $ errors = $ this ->_model ->setParameters (
1618
- ['behavior ' => \Magento \ImportExport \Model \Import::BEHAVIOR_APPEND , 'entity ' => 'catalog_product ' ]
1619
- )
1620
- ->setSource ($ source )
1621
- ->validateData ();
1622
-
1623
- $ this ->assertTrue ($ errors ->getErrorsCount () == 0 );
1624
- $ this ->_model ->importData ();
1607
+ $ this ->importFile ('products_to_import_with_non_existing_image.csv ' );
1625
1608
1626
1609
$ productRepository = $ this ->objectManager ->create (\Magento \Catalog \Api \ProductRepositoryInterface::class);
1627
1610
foreach ($ products as $ productSku => $ productQty ) {
You can’t perform that action at this time.
0 commit comments