|
12 | 12 | use Magento\Store\Model\Store;
|
13 | 13 | use Magento\Catalog\Model\Config;
|
14 | 14 | use Magento\Catalog\Model\Indexer\Product\Category\Action\Rows;
|
| 15 | +use Magento\Catalog\Model\Indexer\Product\Category as ProductCategoryIndexer; |
15 | 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;
|
@@ -228,10 +229,26 @@ public function testExecuteWithIndexerWorking() : void
|
228 | 229 | $this->connection->expects($this->any())
|
229 | 230 | ->method('fetchOne')
|
230 | 231 | ->willReturn($categoryId);
|
231 |
| - $this->indexerRegistry->expects($this->any()) |
| 232 | + $this->indexerRegistry->expects($this->at(0)) |
232 | 233 | ->method('get')
|
233 | 234 | ->with(CategoryProductIndexer::INDEXER_ID)
|
234 | 235 | ->willReturn($this->indexer);
|
| 236 | + $this->indexerRegistry->expects($this->at(1)) |
| 237 | + ->method('get') |
| 238 | + ->with(CategoryProductIndexer::INDEXER_ID) |
| 239 | + ->willReturn($this->indexer); |
| 240 | + $this->indexerRegistry->expects($this->at(2)) |
| 241 | + ->method('get') |
| 242 | + ->with(ProductCategoryIndexer::INDEXER_ID) |
| 243 | + ->willReturn($this->indexer); |
| 244 | + $this->indexerRegistry->expects($this->at(3)) |
| 245 | + ->method('get') |
| 246 | + ->with(CategoryProductIndexer::INDEXER_ID) |
| 247 | + ->willReturn($this->indexer); |
| 248 | + $this->indexerRegistry->expects($this->at(4)) |
| 249 | + ->method('get') |
| 250 | + ->with(ProductCategoryIndexer::INDEXER_ID) |
| 251 | + ->willReturn($this->indexer); |
235 | 252 | $this->indexer->expects($this->any())
|
236 | 253 | ->method('getId')
|
237 | 254 | ->willReturn(CategoryProductIndexer::INDEXER_ID);
|
|
0 commit comments