public function testExecuteFull() { /** @var \Magento\Catalog\Model\Indexer\Category\Product\Action\Full $productIndexerFlatFull */ $productIndexerFlatFull = $this->getMock(\Magento\Catalog\Model\Indexer\Category\Product\Action\Full::class, [], [], '', false); $this->fullMock->expects($this->once())->method('create')->willReturn($productIndexerFlatFull); $productIndexerFlatFull->expects($this->once())->method('execute'); $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()->execute(); $this->registerTags(); }