File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
dev/tests/integration/testsuite/Magento Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
declare (strict_types=1 );
7
7
8
8
use Magento \Catalog \Api \ProductRepositoryInterface ;
9
+ use Magento \CatalogInventory \Model \Indexer \Stock \Processor ;
10
+ use Magento \Framework \App \ObjectManager ;
9
11
use Magento \Framework \Exception \NoSuchEntityException ;
10
12
use Magento \Framework \Exception \StateException ;
13
+ use Magento \Framework \Registry ;
11
14
use Magento \TestFramework \Helper \Bootstrap ;
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
32
+ ObjectManager::getInstance ()->create (Processor::class)->reindexAll ();
33
+
29
34
$ registry ->unregister ('isSecureArea ' );
30
35
$ registry ->register ('isSecureArea ' , false );
Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ protected function tearDown(): void
116
116
}
117
117
118
118
/**
119
- * @magentoDataFixture Magento/Catalog/_files/product_virtual.php
120
119
* @magentoDataFixture Magento/Sales/_files/quote.php
120
+ * @magentoDataFixture Magento/Catalog/_files/product_virtual.php
121
121
* @return void
122
122
*/
123
123
public function testCollectTotalsWithVirtual (): void
You can’t perform that action at this time.
0 commit comments