Example #1
0
 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();
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function executeFull()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'executeFull');
     if (!$pluginInfo) {
         return parent::executeFull();
     } else {
         return $this->___callPlugins('executeFull', func_get_args(), $pluginInfo);
     }
 }