/** @var ProductEntity $product */
$product =
$products->
first();
static::
assertInstanceOf(SeoUrlCollection::
class,
$product->
getSeoUrls());
} public function testInsert(): void
{ $seoUrlId1 = Uuid::
randomHex();
$seoUrlId2 = Uuid::
randomHex();
$id = Uuid::
randomHex();
$this->
upsertProduct([ 'id' =>
$id,
'name' => 'awesome product',
'seoUrls' =>
[ [ 'id' =>
$seoUrlId1,
'salesChannelId' => TestDefaults::SALES_CHANNEL,
'routeName' => ProductPageSeoUrlRoute::ROUTE_NAME,
'pathInfo' => '/detail/' .
$id,
'seoPathInfo' => 'awesome v2',
'isCanonical' => true,
'isModified' => true,
],