public function testExecute() { $ids = [1, 2, 3]; $this->productFlatIndexerRows->expects($this->any())->method('execute')->with($this->equalTo($ids)); $this->cacheContextMock->expects($this->once())->method('registerEntities')->with(\Magento\Catalog\Model\Product::CACHE_TAG, $ids); $this->model->execute($ids); }
public function testExecuteAndExecuteList() { $except = ['test']; $this->productFlatIndexerRows->expects($this->any())->method('execute')->with($this->equalTo($except)); $this->model->execute($except); $this->model->executeList($except); }
/** * {@inheritdoc} */ public function execute($ids) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'execute'); if (!$pluginInfo) { return parent::execute($ids); } else { return $this->___callPlugins('execute', func_get_args(), $pluginInfo); } }