Example #1
0
 public function testExecuteWithExistingFlatTablesCreatesTables()
 {
     $this->productIndexerHelper->expects($this->any())->method('getFlatTableName')->will($this->returnValue('store_flat_table'));
     $this->connection->expects($this->any())->method('isTableExists')->with('store_flat_table')->will($this->returnValue(true));
     $this->flatItemEraser->expects($this->once())->method('removeDeletedProducts');
     $this->flatTableBuilder->expects($this->never())->method('build')->with('store_id_1', ['product_id_1']);
     $this->model->execute('product_id_1');
 }
Example #2
0
 public function testExecuteRow()
 {
     $except = 5;
     $this->productFlatIndexerRow->expects($this->any())->method('execute')->with($this->equalTo($except));
     $this->model->executeRow($except);
 }
Example #3
0
 /**
  * Execute partial indexation by ID
  *
  * @param int $id
  * @return void
  */
 public function executeRow($id)
 {
     $this->_productFlatIndexerRow->execute($id);
 }