Skip to content

Commit d254b9f

Browse files
#22650: Integration test fix.
1 parent 50d8546 commit d254b9f

File tree

1 file changed

+3
-1
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
use Magento\Framework\App\Bootstrap;
2121
use Magento\Framework\App\Filesystem\DirectoryList;
2222
use Magento\Framework\App\ObjectManager;
23+
use Magento\Framework\Exception\NoSuchEntityException;
2324
use Magento\Framework\Filesystem;
2425
use Magento\Framework\Registry;
2526
use Magento\ImportExport\Model\Import;
2627
use Magento\Store\Model\Store;
2728
use Psr\Log\LoggerInterface;
28-
use Magento\Framework\Exception\NoSuchEntityException;
2929

3030
/**
3131
* Class ProductTest
@@ -95,6 +95,7 @@ protected function tearDown()
9595
try {
9696
$product = $productRepository->get($productSku, false, null, true);
9797
$productRepository->delete($product);
98+
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
9899
} catch (NoSuchEntityException $e) {
99100
// nothing to delete
100101
}
@@ -1097,6 +1098,7 @@ public function testProductsWithMultipleStores()
10971098
/**
10981099
* Test url keys properly generated in multistores environment.
10991100
*
1101+
* @magentoConfigFixture current_store catalog/seo/product_use_categories 1
11001102
* @magentoDataFixture Magento/Store/_files/core_fixturestore.php
11011103
* @magentoDataFixture Magento/Catalog/_files/category_with_two_stores.php
11021104
* @magentoDbIsolation enabled

0 commit comments

Comments
 (0)