$this->productExportRepository =
$this->
getContainer()->
get('product_export.repository'
);
$this->context = Context::
createDefaultContext();
$this->fileSystem =
$this->
getContainer()->
get('shopware.filesystem.private'
);
} /**
* @group quarantined
*/
public function testRun(): void
{ // Add a second storefront sales channel, to check if all sales channels will be recognized for the product export
$this->
createSecondStorefrontSalesChannel();
$this->
createProductStream();
// only get seconds, not microseconds, for better comparison to DB
/** @var \DateTime $previousGeneratedAt */
$previousGeneratedAt = \DateTime::
createFromFormat('U',
(string) time());
$exportId =
$this->
createTestEntity($previousGeneratedAt);
$this->
clearQueue();
$this->
getTaskHandler()->
run();
$url = '/api/_action/message-queue/consume';
$client =
$this->
getBrowser();