public function test_migrateConversions()
 {
     $conversion = array('idsite' => 1, 'idvisit' => 3, 'idlink_va' => 5, 'idaction_url' => 7);
     $this->toDbHelper->expects($this->once())->method('executeInsert')->with('log_conversion', $this->equalTo(array('idsite' => 2, 'idvisit' => 4, 'idlink_va' => 6, 'idaction_url' => 8)));
     $this->siteMigrator->expects($this->once())->method('getNewId')->with(1)->willReturn(2);
     $this->visitMigrator->expects($this->once())->method('getNewId')->with(3)->willReturn(4);
     $this->linkVisitActionMigrator->expects($this->once())->method('getNewId')->with(5)->willReturn(6);
     $this->actionMigrator->expects($this->once())->method('getNewId')->with(7)->willReturn(8);
     $this->conversionMigrator->migrate(new \ArrayIterator(array($conversion)));
 }
 private function migrateLogVisitConversions()
 {
     Log::info('Migrating log data - conversions and conversion items');
     $queries = $this->getLogVisitQueriesFor('log_conversion');
     $itemQueries = $this->getLogVisitQueriesFor('log_conversion_item');
     if (count($queries) > 0) {
         $this->conversionMigrator->migrate($this->getBatchProvider($queries));
         $this->conversionItemMigrator->migrate($this->getBatchProvider($itemQueries));
     }
 }