|
13 | 13 | use Magento\Catalog\Model\Config;
|
14 | 14 | use Magento\Catalog\Model\Indexer\Category\Product\Action\Rows;
|
15 | 15 | use Magento\Catalog\Model\Indexer\Product\Category as ProductCategoryIndexer;
|
| 16 | +use Magento\Catalog\Model\Indexer\Category\Product as CategoryProductIndexer; |
16 | 17 | use Magento\Catalog\Model\Indexer\Category\Product\TableMaintainer;
|
17 | 18 | use Magento\Indexer\Model\WorkingStateProvider;
|
18 | 19 | use Magento\Framework\EntityManager\EntityMetadataInterface;
|
@@ -219,10 +220,26 @@ public function testExecuteWithIndexerWorking() : void
|
219 | 220 | $this->connection->expects($this->any())
|
220 | 221 | ->method('fetchOne')
|
221 | 222 | ->willReturn($categoryId);
|
222 |
| - $this->indexerRegistry->expects($this->any()) |
| 223 | + $this->indexerRegistry->expects($this->at(0)) |
223 | 224 | ->method('get')
|
224 | 225 | ->with(ProductCategoryIndexer::INDEXER_ID)
|
225 | 226 | ->willReturn($this->indexer);
|
| 227 | + $this->indexerRegistry->expects($this->at(1)) |
| 228 | + ->method('get') |
| 229 | + ->with(ProductCategoryIndexer::INDEXER_ID) |
| 230 | + ->willReturn($this->indexer); |
| 231 | + $this->indexerRegistry->expects($this->at(2)) |
| 232 | + ->method('get') |
| 233 | + ->with(CategoryProductIndexer::INDEXER_ID) |
| 234 | + ->willReturn($this->indexer); |
| 235 | + $this->indexerRegistry->expects($this->at(3)) |
| 236 | + ->method('get') |
| 237 | + ->with(ProductCategoryIndexer::INDEXER_ID) |
| 238 | + ->willReturn($this->indexer); |
| 239 | + $this->indexerRegistry->expects($this->at(4)) |
| 240 | + ->method('get') |
| 241 | + ->with(CategoryProductIndexer::INDEXER_ID) |
| 242 | + ->willReturn($this->indexer); |
226 | 243 | $this->indexer->expects($this->any())
|
227 | 244 | ->method('getId')
|
228 | 245 | ->willReturn(ProductCategoryIndexer::INDEXER_ID);
|
|
0 commit comments