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