/**
* @internal
*
* @covers \Shopware\Storefront\Framework\Seo\SeoUrlRoute\ProductPageSeoUrlRoute
*/
#[Package('buyers-experience')]
class ProductPageSeoUrlRouteTest extends TestCase
{ public function testGetConfig(): void
{ $productDefinition =
$this->
createMock(ProductDefinition::
class);
$route =
new ProductPageSeoUrlRoute($productDefinition);
$config =
$route->
getConfig();
static::
assertSame($productDefinition,
$config->
getDefinition());
static::
assertSame(ProductPageSeoUrlRoute::ROUTE_NAME,
$config->
getRouteName());
static::
assertSame(ProductPageSeoUrlRoute::DEFAULT_TEMPLATE,
$config->
getTemplate());
static::
assertTrue($config->
getSkipInvalid());
} public function testCriteria(): void
{ $route =
new ProductPageSeoUrlRoute($this->
createMock(ProductDefinition::
class));