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(); }
/** * Execute full indexation * * @return void */ public function executeFull() { $this->fullActionFactory->create()->reindexAll(); }
/** * Execute full indexation * * @return void */ public function executeFull() { $this->fullActionFactory->create()->reindexAll(); $this->getCacheContext()->registerTags([\Magento\Catalog\Model\Category::CACHE_TAG]); }