/**
  * @param array[] $patchedAliases
  *
  * @return AliasGroupList
  */
 private function getAliasesFromArrayForPatching(array $patchedAliases)
 {
     $aliases = new AliasGroupList();
     foreach ($patchedAliases as $languageCode => $aliasList) {
         $aliases->setAliasesForLanguage($languageCode, $aliasList);
     }
     return $aliases;
 }
 public function testToTextArray()
 {
     $list = new AliasGroupList();
     $list->setAliasesForLanguage('en', array('foo', 'baz'));
     $list->setAliasesForLanguage('de', array('bar'));
     $expected = array('en' => array('foo', 'baz'), 'de' => array('bar'));
     $this->assertEquals($expected, $list->toTextArray());
 }