$this->
getContainer()->
get(SalesChannelContextFactory::
class),
$this->
createMock(EventDispatcher::
class) );
} public function testSkipNonStorefrontSalesChannels(): void
{ $connection =
$this->
getContainer()->
get(Connection::
class);
$connection->
executeStatement('DELETE FROM sales_channel'
);
$storefrontId = Uuid::
randomHex();
$this->
createSalesChannel([ 'id' =>
$storefrontId,
'name' => 'storefront',
'typeId' => Defaults::SALES_CHANNEL_TYPE_STOREFRONT,
'domains' =>
[[ 'languageId' => Defaults::LANGUAGE_SYSTEM,
'currencyId' => Defaults::CURRENCY,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'url' => 'http://valid.test',
]],
]);
$this->
createSalesChannel([