Skip to content

Commit d7ab2db

Browse files
committed
Resolved the pr comments
1 parent 120d23f commit d7ab2db

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
use Magento\Framework\Exception\NoSuchEntityException;
1010
use Magento\Framework\Exception\StateException;
1111
use Magento\TestFramework\Helper\Bootstrap;
12+
use Magento\Framework\App\ObjectManager;
13+
use Magento\CatalogInventory\Model\Indexer\Stock\Processor;
14+
use Magento\Framework\Registry;
1215

13-
$registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);
16+
$registry = Bootstrap::getObjectManager()->get(Registry::class);
1417

1518
$registry->unregister('isSecureArea');
1619
$registry->register('isSecureArea', true);
@@ -26,8 +29,8 @@
2629
} catch (StateException $exception) {
2730
}
2831

29-
\Magento\Framework\App\ObjectManager::getInstance()
30-
->create(\Magento\CatalogInventory\Model\Indexer\Stock\Processor::class)
32+
ObjectManager::getInstance()
33+
->create(Processor::class)
3134
->reindexAll();
3235

3336
$registry->unregister('isSecureArea');

0 commit comments

Comments
 (0)