This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Product Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ class ActionTest extends \PHPUnit\Framework\TestCase
19
19
*/
20
20
private $ objectManager ;
21
21
22
+ public static function setUpBeforeClass ()
23
+ {
24
+ /** @var \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry */
25
+ $ indexerRegistry = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
26
+ ->get (\Magento \Framework \Indexer \IndexerRegistry::class);
27
+ $ indexerRegistry ->get (Fulltext::INDEXER_ID )->setScheduled (true );
28
+ }
29
+
22
30
protected function setUp ()
23
31
{
24
32
$ this ->objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
@@ -39,10 +47,6 @@ protected function setUp()
39
47
*/
40
48
public function testUpdateWebsites ()
41
49
{
42
- /** @var \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry */
43
- $ indexerRegistry = $ this ->objectManager ->get (\Magento \Framework \Indexer \IndexerRegistry::class);
44
- $ indexerRegistry ->get (Fulltext::INDEXER_ID )->setScheduled (true );
45
-
46
50
/** @var \Magento\Store\Api\WebsiteRepositoryInterface $websiteRepository */
47
51
$ websiteRepository = $ this ->objectManager ->create (\Magento \Store \Api \WebsiteRepositoryInterface::class);
48
52
@@ -147,7 +151,7 @@ public function updateAttributesDataProvider()
147
151
];
148
152
}
149
153
150
- public function tearDown ()
154
+ public static function tearDownAfterClass ()
151
155
{
152
156
/** @var \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry */
153
157
$ indexerRegistry = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
You can’t perform that action at this time.
0 commit comments