$this->
createSalesChannel([ 'name' => 'export',
'typeId' => Defaults::SALES_CHANNEL_TYPE_PRODUCT_COMPARISON,
'domains' =>
[[ 'languageId' => Defaults::LANGUAGE_SYSTEM,
'currencyId' => Defaults::CURRENCY,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'url' => 'http://export.test',
]],
]);
$result =
new SitemapGenerationResult(true, null, null,
$storefrontId, Defaults::LANGUAGE_SYSTEM
);
$this->exporter->
expects(static::
once()) ->
method('generate'
) ->
with(static::
callback(function DSalesChannelContext
$context) use ($storefrontId) { static::
assertSame($storefrontId,
$context->
getSalesChannelId());
return true;
})) ->
willReturn($result);
$input =
new ArrayInput([]);