@@ -32,7 +32,7 @@ public static function setUpBeforeClass()
32
32
33
33
protected function setUp ()
34
34
{
35
- $ this ->_processor = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
35
+ $ this ->_processor = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
36
36
\Magento \Catalog \Model \Indexer \Product \Eav \Processor::class
37
37
);
38
38
}
@@ -46,24 +46,24 @@ protected function setUp()
46
46
public function testReindexAll ()
47
47
{
48
48
/** @var \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attr **/
49
- $ attr = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (\Magento \Eav \Model \Config::class)
49
+ $ attr = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (\Magento \Eav \Model \Config::class)
50
50
->getAttribute ('catalog_product ' , 'weight ' );
51
51
$ attr ->setIsFilterable (1 )->save ();
52
52
53
53
$ this ->assertTrue ($ attr ->isIndexable ());
54
54
55
- $ priceIndexerProcessor = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
55
+ $ priceIndexerProcessor = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
56
56
\Magento \Catalog \Model \Indexer \Product \Price \Processor::class
57
57
);
58
58
$ priceIndexerProcessor ->reindexAll ();
59
59
60
60
$ this ->_processor ->reindexAll ();
61
61
62
- $ categoryFactory = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
62
+ $ categoryFactory = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
63
63
\Magento \Catalog \Model \CategoryFactory::class
64
64
);
65
65
/** @var \Magento\Catalog\Block\Product\ListProduct $listProduct */
66
- $ listProduct = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
66
+ $ listProduct = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
67
67
\Magento \Catalog \Block \Product \ListProduct::class
68
68
);
69
69
0 commit comments