protected function processRow(&$row)
 {
     $id = $this->getIdFromRow($row);
     $this->translateRow($row);
     $this->targetDb->executeInsert($this->getTableName(), $row);
     if ($id != null) {
         $this->addNewId($id, $this->targetDb->lastInsertId());
     }
 }
 public function test_executeInsert()
 {
     $this->adapter->expects($this->once())->method('insert')->with($this->dbHelper->prefixTable('table'), $this->anything());
     $this->dbHelper->executeInsert('table', array());
 }
 private function processArchive($archiveDate, $archiveTable, $record)
 {
     $record['idarchive'] = $this->getArchiveId($archiveDate, $record['idarchive']);
     $record['idsite'] = $this->siteMigrator->getNewId($record['idsite']);
     $this->targetDb->executeInsert($archiveTable, $record);
 }