Skip to content

Commit caf0b4f

Browse files
committed
Resolved pr comments
1 parent 52e2989 commit caf0b4f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/product_virtual_rollback.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*/
66
declare(strict_types=1);
77

8-
use Magento\Catalog\Api\ProductRepositoryInterface;
9-
use Magento\Framework\Exception\NoSuchEntityException;
10-
use Magento\Framework\Exception\StateException;
118
use Magento\TestFramework\Helper\Bootstrap;
9+
use Magento\Framework\Exception\NoSuchEntityException;
1210
use Magento\Framework\App\ObjectManager;
1311
use Magento\CatalogInventory\Model\Indexer\Stock\Processor;
12+
use Magento\Catalog\Api\ProductRepositoryInterface;
1413
use Magento\Framework\Registry;
14+
use Magento\Framework\Exception\StateException;
1515

1616
$registry = Bootstrap::getObjectManager()->get(Registry::class);
1717

@@ -29,9 +29,7 @@
2929
} catch (StateException $exception) {
3030
}
3131

32-
ObjectManager::getInstance()
33-
->create(Processor::class)
34-
->reindexAll();
32+
ObjectManager::getInstance()->create(Processor::class)->reindexAll();
3533

3634
$registry->unregister('isSecureArea');
3735
$registry->register('isSecureArea', false);

0 commit comments

Comments
 (0)