Skip to content

Commit 5be08d3

Browse files
author
Oleksandr Iegorov
committed
MC-21948: Products index data delete process fires before indexation instead of right before insert indexed data to index tables during partial reindex
1 parent 6defced commit 5be08d3

File tree

1 file changed

+5
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Elasticsearch/Controller/Adminhtml/Category

1 file changed

+5
-0
lines changed

dev/tests/integration/testsuite/Magento/Elasticsearch/Controller/Adminhtml/Category/SaveTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public function testExecute()
7878
self::equalTo(['You saved the category.']),
7979
MessageInterface::TYPE_SUCCESS
8080
);
81+
82+
$fulltextIndexer = $this->getIndexer(FulltextIndexer::INDEXER_ID);
83+
self::assertTrue($fulltextIndexer->isInvalid(), 'Fulltext indexer should be invalidated.');
84+
$categoryIndexer = $this->getIndexer(CategoryIndexer::INDEXER_ID);
85+
self::assertTrue($categoryIndexer->isInvalid(), 'Category indexer should be invalidated.');
8186
}
8287

8388
/**

0 commit comments

Comments
 (0)