/**
* Checks whether the amount of generated URLs is correct. Empty SEO-URL
* templates should lead to no SEO-URL being generated.
*
* @dataProvider templateDataProvider
*/
public function testGenerateUrlCount(string
$template, int
$count, string
$pathInfo): void
{ $id =
$this->
getValidCategoryId();
$route =
$this->seoUrlRouteRegistry->
findByRouteName(TestNavigationSeoUrlRoute::ROUTE_NAME
);
static::
assertInstanceOf(SeoUrlRouteInterface::
class,
$route);
/** @var \Traversable<SeoUrlEntity> $urls */
$urls =
$this->seoUrlGenerator->
generate( [$id],
$template,
$route,
$this->salesChannelContext->
getContext(),
$this->salesChannelContext->
getSalesChannel() );