7
7
8
8
use Magento \Catalog \Api \ProductRepositoryInterface ;
9
9
use Magento \Catalog \Model \Indexer \Product \Price \Processor ;
10
- use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
11
- use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
12
10
use Magento \Framework \App \ResourceConnection ;
13
11
use Magento \Store \Model \StoreManagerInterface ;
14
12
use Magento \TestFramework \Fixture \AppIsolation ;
@@ -67,16 +65,6 @@ class IndexerBuilderTest extends \PHPUnit\Framework\TestCase
67
65
*/
68
66
private $ indexProductProcessor ;
69
67
70
- /**
71
- * @var RuleProductProcessor
72
- */
73
- private $ ruleProductProcessor ;
74
-
75
- /**
76
- * @var CollectionFactory
77
- */
78
- private $ productCollectionFactory ;
79
-
80
68
protected function setUp (): void
81
69
{
82
70
$ this ->indexerBuilder = Bootstrap::getObjectManager ()->get (
@@ -88,8 +76,6 @@ protected function setUp(): void
88
76
$ this ->productRepository = Bootstrap::getObjectManager ()->get (ProductRepositoryInterface::class);
89
77
$ this ->connection = Bootstrap::getObjectManager ()->get (ResourceConnection::class);
90
78
$ this ->indexProductProcessor = Bootstrap::getObjectManager ()->get (Processor::class);
91
- $ this ->ruleProductProcessor = Bootstrap::getObjectManager ()->get (RuleProductProcessor::class);
92
- $ this ->productCollectionFactory = Bootstrap::getObjectManager ()->get (CollectionFactory::class);
93
79
}
94
80
95
81
protected function tearDown (): void
@@ -265,7 +251,7 @@ private function getTriggersCount(string $tableName): int
265
251
{
266
252
return count (
267
253
$ this ->connection ->getConnection ()
268
- ->query ('SHOW TRIGGERS LIKE \'' . $ tableName . '\'' )
254
+ ->query ('SHOW TRIGGERS LIKE \'' . $ tableName . '\'' )
269
255
->fetchAll ()
270
256
);
271
257
}
0 commit comments