77
88use Magento \Catalog \Api \ProductRepositoryInterface ;
99use Magento \Catalog \Model \Indexer \Product \Price \Processor ;
10- use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
11- use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
1210use Magento \Framework \App \ResourceConnection ;
1311use Magento \Store \Model \StoreManagerInterface ;
1412use Magento \TestFramework \Fixture \AppIsolation ;
@@ -67,16 +65,6 @@ class IndexerBuilderTest extends \PHPUnit\Framework\TestCase
6765 */
6866 private $ indexProductProcessor ;
6967
70- /**
71- * @var RuleProductProcessor
72- */
73- private $ ruleProductProcessor ;
74-
75- /**
76- * @var CollectionFactory
77- */
78- private $ productCollectionFactory ;
79-
8068 protected function setUp (): void
8169 {
8270 $ this ->indexerBuilder = Bootstrap::getObjectManager ()->get (
@@ -88,8 +76,6 @@ protected function setUp(): void
8876 $ this ->productRepository = Bootstrap::getObjectManager ()->get (ProductRepositoryInterface::class);
8977 $ this ->connection = Bootstrap::getObjectManager ()->get (ResourceConnection::class);
9078 $ this ->indexProductProcessor = Bootstrap::getObjectManager ()->get (Processor::class);
91- $ this ->ruleProductProcessor = Bootstrap::getObjectManager ()->get (RuleProductProcessor::class);
92- $ this ->productCollectionFactory = Bootstrap::getObjectManager ()->get (CollectionFactory::class);
9379 }
9480
9581 protected function tearDown (): void
@@ -265,7 +251,7 @@ private function getTriggersCount(string $tableName): int
265251 {
266252 return count (
267253 $ this ->connection ->getConnection ()
268- ->query ('SHOW TRIGGERS LIKE \'' . $ tableName . '\'' )
254+ ->query ('SHOW TRIGGERS LIKE \'' . $ tableName . '\'' )
269255 ->fetchAll ()
270256 );
271257 }
0 commit comments