Skip to content

Commit 73f3d24

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

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest/ProductIndexersInvalidationTest.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,23 @@
1010
use Magento\Catalog\Model\Indexer\Product\Price\Processor as ProductPriceIndexer;
1111
use Magento\CatalogSearch\Model\Indexer\Fulltext as FulltextIndexer;
1212
use Magento\CatalogImportExport\Model\Import\ProductTestBase;
13+
use Magento\Framework\App\Area;
1314
use Magento\Framework\Indexer\IndexerRegistry;
15+
use Magento\TestFramework\Fixture\AppArea;
16+
use Magento\TestFramework\Fixture\DataFixture;
17+
use Magento\TestFramework\Fixture\DbIsolation;
1418
use Magento\TestFramework\Helper\Bootstrap as BootstrapHelper;
1519

16-
/**
17-
* @magentoAppArea adminhtml
18-
* @magentoDbIsolation disabled
19-
*/
20+
#[
21+
AppArea(Area::AREA_ADMINHTML),
22+
DbIsolation(false),
23+
]
2024
class ProductIndexersInvalidationTest extends ProductTestBase
2125
{
22-
/**
23-
* Test for indexer state in update on save mode
24-
*
25-
* @magentoDataFixture Magento/Catalog/_files/multiple_products.php
26-
*/
27-
public function testIndexersState()
26+
#[
27+
DataFixture('Magento/Catalog/_files/multiple_products.php'),
28+
]
29+
public function testIndexersState() : void
2830
{
2931
$indexerRegistry = BootstrapHelper::getObjectManager()->get(IndexerRegistry::class);
3032
$fulltextIndexer = $indexerRegistry->get(FulltextIndexer::INDEXER_ID);

0 commit comments

Comments
 (0)