} private function createSalesChannel(IdsCollection
$ids): void
{ $data =
[ 'id' =>
$ids->
create('sales-channel'
),
'name' => 'unit test channel',
'typeId' => Defaults::SALES_CHANNEL_TYPE_STOREFRONT,
'accessKey' => AccessKeyHelper::
generateAccessKey('sales-channel'
),
'languageId' => Defaults::LANGUAGE_SYSTEM,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'currencyId' => Defaults::CURRENCY,
'currencyVersionId' => Defaults::LIVE_VERSION,
'paymentMethodId' =>
$this->
getValidPaymentMethodId(),
'paymentMethodVersionId' => Defaults::LIVE_VERSION,
'shippingMethodId' =>
$ids->
get('shipping-method'
),
'shippingMethodVersionId' => Defaults::LIVE_VERSION,
'navigationCategoryId' =>
$this->
getValidCategoryId(),
'navigationCategoryVersionId' => Defaults::LIVE_VERSION,
'countryId' =>
$this->
getValidCountryId(),
'countryVersionId' => Defaults::LIVE_VERSION,
'currencies' =>
[['id' => Defaults::CURRENCY
]],