setXDefaultLocalization() public méthode

public setXDefaultLocalization ( Localization $xDefaultLocalization )
$xDefaultLocalization Sulu\Component\Localization\Localization
 /**
  * Test get alternate links.
  */
 public function testGetAlternateLinksDifferentDefaultLocale()
 {
     $locale = new Localization();
     $locale->setLanguage('de');
     $this->portal->setXDefaultLocalization($locale);
     $extension = new MetaTwigExtension($this->requestAnalyzer->reveal(), $this->contentPath->reveal());
     $urls = $extension->getAlternateLinks(['de' => '/test', 'en' => '/test-en', 'en-us' => '/test-en-us', 'fr' => '/test-fr']);
     $this->assertEquals(['<link rel="alternate" href="/de/test" hreflang="x-default" />', '<link rel="alternate" href="/de/test" hreflang="de" />', '<link rel="alternate" href="/en/test-en" hreflang="en" />', '<link rel="alternate" href="/en/test-en-us" hreflang="en-us" />', '<link rel="alternate" href="/fr/test-fr" hreflang="fr" />'], explode(PHP_EOL, $urls));
 }