public function testDoExecuteList()
 {
     $ids = [1, 2, 5];
     $this->indexBuilder->expects($this->once())->method('reindexFull');
     $this->cacheContextMock->expects($this->once())->method('registerTags')->with([\Magento\Catalog\Model\Category::CACHE_TAG, \Magento\Catalog\Model\Product::CACHE_TAG, \Magento\Framework\App\Cache\Type\Block::CACHE_TAG]);
     $this->indexer->executeList($ids);
 }
예제 #2
0
 public function testDoExecuteList()
 {
     $this->indexBuilder->expects($this->once())->method('reindexFull');
     $this->indexer->executeList([1, 2, 5]);
 }