public function test_migrateConversionItems()
 {
     $conversionItem = array('idsite' => 1, 'idvisit' => 3, 'idlink_va' => 5, 'idaction_sku' => 7, 'idaction_name' => 0, 'idaction_category' => 11, 'idaction_category2' => 13, 'idaction_category3' => 15, 'idaction_category4' => 17, 'idaction_category5' => 19);
     $this->toDbHelper->expects($this->once())->method('executeInsert')->with('log_conversion_item', $this->anything());
     $this->siteMigrator->expects($this->once())->method('getNewId')->with(1)->willReturn(2);
     $this->visitMigrator->expects($this->once())->method('getNewId')->with(3)->willReturn(4);
     $this->actionMigrator->expects($this->exactly(6))->method('getNewId')->will($this->onConsecutiveCalls(2, 4, 6, 8, 12, 14, 16, 18, 20));
     $this->conversionItemMigrator->migrate(new \ArrayIterator(array($conversionItem)));
 }
 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));
     }
 }