Skip to content

Commit b047042

Browse files
committed
ACP2E-1569: Elasticsearch Indexer document version changes version when new/existing products are imported
1 parent c8fb910 commit b047042

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

dev/tests/integration/testsuite/Magento/CatalogRule/Model/Indexer/IndexerBuilderTest.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
use Magento\Catalog\Api\ProductRepositoryInterface;
99
use Magento\Catalog\Model\Indexer\Product\Price\Processor;
10-
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;
11-
use Magento\CatalogRule\Model\Indexer\Rule\RuleProductProcessor;
1210
use Magento\Framework\App\ResourceConnection;
1311
use Magento\Store\Model\StoreManagerInterface;
1412
use 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

Comments
 (0)