/**
  * @covers eZ\Publish\Core\Persistence\Legacy\Content\Language\Mapper::extractLanguagesFromRows
  *
  * @return void
  */
 public function testExtractLanguagesFromRows()
 {
     $mapper = new Mapper();
     $rows = $this->getRowsFixture();
     $result = $mapper->extractLanguagesFromRows($rows);
     $this->assertEquals($this->getExtractReference(), $result);
 }
Exemple #2
0
 /**
  * Get all languages.
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Language[]
  */
 public function loadAll()
 {
     return $this->languageMapper->extractLanguagesFromRows($this->languageGateway->loadAllLanguagesData());
 }