public function testInvalidXmlExport(): void
{ $productExportId =
$this->
createTestEntity();
$criteria =
new Criteria([$productExportId]);
$criteria->
addAssociation('salesChannelDomain.language'
);
$criteria->
addAssociation('salesChannel'
);
$productExport =
$this->repository->
search($criteria,
$this->context
)->
first();
$productExport->
setFooterTemplate(''
);
$exportResult =
$this->service->
generate($productExport,
new ExportBehavior());
static::
assertTrue($exportResult->
hasErrors());
} private function getSalesChannelId(): string
{ /** @var EntityRepository $repository */
$repository =
$this->
getContainer()->
get('sales_channel.repository'
);