private function cleanDefaultSalesChannelDomain(): void
{ $connection =
$this->
getContainer()->
get(Connection::
class);
$connection->
delete(SalesChannelDomainDefinition::ENTITY_NAME,
[ 'sales_channel_id' => Uuid::
fromHexToBytes(TestDefaults::SALES_CHANNEL
),
]);
} private function createProducts(): void
{ $products =
$this->
getProductTestData($this->salesChannelContext
);
$this->
getContainer()->
get('product.repository'
)->
create($products,
$this->salesChannelContext->
getContext());
} private function getProductTestData(SalesChannelContext
$salesChannelContext): array
{ $taxId =
$salesChannelContext->
getTaxRules()->
first()->
getId();
$products =
[ [ 'id' => Uuid::
randomHex(),