'tax' =>
['id' => Uuid::
randomHex(), 'taxRate' => 19, 'name' => 'tax'
],
'price' =>
[['currencyId' => Defaults::CURRENCY, 'gross' => 10, 'net' => 12, 'linked' => false
]],
'stock' => 0,
'visibilities' =>
[ [ 'salesChannelId' =>
$salesChannelId,
'visibility' => ProductVisibilityDefinition::VISIBILITY_ALL,
],
],
],
];
$this->productRepository->
upsert($products, Context::
createDefaultContext());
$criteria =
new Criteria([$id1,
$id2]);
$criteria->
addAssociation('seoUrls'
);
$products =
$this->productRepository->
search($criteria, Context::
createDefaultContext());
/** @var ProductEntity $first */
$first =
$products->
first();
/** @var SeoUrlCollection $seoUrls */
$seoUrls =
$first->
getSeoUrls();
static::
assertCount(1,
$seoUrls);