/** * Execute partial indexation by ID * * @param int $id * @return void */ public function executeRow($id) { $this->_productEavIndexerRow->execute($id); }
/** * @expectedException \Magento\Catalog\Exception * @expectedExceptionMessage Could not rebuild index for undefined product */ public function testEmptyId() { $this->_model->execute(null); }
public function testExecuteRow() { $id = 11; $this->_productEavIndexerRow->expects($this->once())->method('execute')->with($id); $this->_model->executeRow($id); }