File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Exception \NoSuchEntityException ;
10
10
use Magento \Framework \Exception \StateException ;
11
11
use Magento \TestFramework \Helper \Bootstrap ;
12
+ use Magento \Framework \App \ObjectManager ;
13
+ use Magento \CatalogInventory \Model \Indexer \Stock \Processor ;
14
+ use Magento \Framework \Registry ;
12
15
13
- $ registry = Bootstrap::getObjectManager ()->get (\ Magento \ Framework \ Registry::class);
16
+ $ registry = Bootstrap::getObjectManager ()->get (Registry::class);
14
17
15
18
$ registry ->unregister ('isSecureArea ' );
16
19
$ registry ->register ('isSecureArea ' , true );
26
29
} catch (StateException $ exception ) {
27
30
}
28
31
29
- \ Magento \ Framework \ App \ ObjectManager::getInstance ()
30
- ->create (\ Magento \ CatalogInventory \ Model \ Indexer \ Stock \ Processor::class)
32
+ ObjectManager::getInstance ()
33
+ ->create (Processor::class)
31
34
->reindexAll ();
32
35
33
36
$ registry ->unregister ('isSecureArea ' );
You can’t perform that action at this time.
0 commit comments