Example #1
0
 public function testIndexerAfterDeleteCommitProduct()
 {
     $this->categoryIndexerMock->expects($this->once())->method('reindexRow');
     $this->productFlatProcessor->expects($this->once())->method('reindexRow');
     $this->productPriceProcessor->expects($this->once())->method('reindexRow');
     $this->prepareCategoryIndexer();
     $this->model->afterDeleteCommit();
 }
 /**
  * {@inheritdoc}
  */
 public function afterDeleteCommit()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'afterDeleteCommit');
     if (!$pluginInfo) {
         return parent::afterDeleteCommit();
     } else {
         return $this->___callPlugins('afterDeleteCommit', func_get_args(), $pluginInfo);
     }
 }