Example #1
0
 public function testExecuteFull()
 {
     /** @var \Magento\Catalog\Model\Indexer\Category\Flat\Action\Full $categoryIndexerFlatFull */
     $categoryIndexerFlatFull = $this->getMock(\Magento\Catalog\Model\Indexer\Category\Flat\Action\Full::class, [], [], '', false);
     $this->fullMock->expects($this->once())->method('create')->willReturn($categoryIndexerFlatFull);
     $categoryIndexerFlatFull->expects($this->once())->method('reindexAll');
     $this->cacheContextMock->expects($this->once())->method('registerTags')->with([\Magento\Catalog\Model\Category::CACHE_TAG]);
     $this->model->executeFull();
 }