$this->deLanguageId =
$this->
getDeDeLanguageId();
$this->
createBreadcrumbData();
$salesChannel =
$this->
createSalesChannel([ 'navigationCategoryId' =>
$this->ids->
get('rootCategory'
),
]);
$contextFactory =
$this->
getContainer()->
get(SalesChannelContextFactory::
class);
$this->salesChannelContext =
$contextFactory->
create('',
$salesChannel['id'
]);
$this->salesChannelId =
$salesChannel['id'
];
$this->seoUrlGenerator =
new SeoUrlGenerator( $this->
getContainer()->
get(DefinitionInstanceRegistry::
class),
$this->
getContainer()->
get('router.default'
),
$this->
getContainer()->
get('request_stack'
),
$this->
getContainer()->
get('shopware.seo_url.twig'
),
$this->
getContainer()->
get(TwigVariableParserFactory::
class) );
$this->seoUrlRouteRegistry =
$this->
getContainer()->
get(SeoUrlRouteRegistry::
class);
} /**
* Checks whether the amount of generated URLs is correct. Empty SEO-URL
* templates should lead to no SEO-URL being generated.
*
* @dataProvider templateDataProvider
*/