public function testExtractContentFromRowsMultipleVersions()
{
$convMock = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter');
$convMock->expects($this->any())->method('toFieldValue')->will($this->returnValue(new FieldValue()));
$reg = new Registry(array('ezstring' => $convMock, 'ezrichtext' => $convMock, 'ezdatetime' => $convMock));
$rowsFixture = $this->getMultipleVersionsExtractFixture();
$nameRowsFixture = $this->getMultipleVersionsNamesExtractFixture();
$mapper = new Mapper($reg, $this->getLanguageHandler());
$result = $mapper->extractContentFromRows($rowsFixture, $nameRowsFixture);
$this->assertEquals(2, count($result));
$this->assertEquals(11, $result[0]->versionInfo->contentInfo->id);
$this->assertEquals(11, $result[1]->versionInfo->contentInfo->id);
$this->assertEquals(1, $result[0]->versionInfo->versionNo);
$this->assertEquals(2, $result[1]->versionInfo->versionNo);
}