$this->
upsertProduct(['id' =>
$id, 'name' => 'awesome product v2', 'productNumber' => 'P1'
],
$salesChannelId);
$product =
$this->productRepository->
search($this->
getCriteria($id,
$salesChannelId),
$salesChannelContext->
getContext())->
first();
static::
assertNotNull($product->
getSeoUrls());
/** @var SeoUrlCollection $seoUrls */
$seoUrls =
$product->
getSeoUrls();
/** @var SeoUrlEntity $seoUrl */
$seoUrl =
$seoUrls->
first();
static::
assertSame('awesome-product-v2/P1',
$seoUrl->
getSeoPathInfo());
static::
assertFalse($seoUrl->
getIsDeleted());
$this->productRepository->
delete([['id' =>
$id]],
$salesChannelContext->
getContext());
$seoUrls =
$this->
getSeoUrls($salesChannelId,
$id);
static::
assertCount(2,
$seoUrls);
static::
assertCount(2,
$seoUrls->
filterByProperty('isDeleted', true
));
static::
assertCount(0,
$seoUrls->
filterByProperty('isDeleted', false
));
} public function testAutoSlugify(): void
{