'url' => 'https://test.de/en',
'hreflangUseOnlyLocale' => false,
'languageId' =>
$languages->
last()->
getId(),
'salesChannelId' =>
$this->salesChannelContext->
getSalesChannel()->
getId(),
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'currencyId' => Defaults::CURRENCY,
],
],
$this->salesChannelContext->
getContext());
$links =
$this->hreflangLoader->
load( new HreflangLoaderParameter('frontend.home.page',
[],
$this->salesChannelContext
) );
static::
assertInstanceOf(HreflangCollection::
class,
$links);
static::
assertEquals(2,
$links->
count());
$foundLinks = 0;
foreach ($links->
getElements() as $element) { if ($element->
getLocale() ===
$languages->
first()->
getLocale()->
getCode()) { static::
assertEquals('https://test.de',
$element->
getUrl());
++
$foundLinks;
}