$this->
createTestEntity($now->
sub(new \
DateInterval('P30M'
)), 3600, 'Testexport.csv'
);
// Create a second ProductExport, last exported 30 minutes ago, to be exported every hour
$this->
createTestEntity($now->
sub(new \
DateInterval('PT30M'
)), 3600, 'Testexport1.csv'
);
/** @var TraceableMessageBus $bus */
$bus =
$this->
getContainer()->
get('messenger.bus.shopware'
);
static::
assertInstanceOf(TraceableMessageBus::
class,
$bus);
$this->
clearQueue();
// Since clearing the queue doesn't seem to really work, check difference in message number
$messagesBefore =
$this->
getDispatchedMessages();
$this->
getTaskHandler()->
run();
$messagesAfter =
$this->
getDispatchedMessages();
static::
assertCount(\
count($messagesBefore) + 1,
$messagesAfter);
} /**
* @group quarantined
*/
public function testGeneratedAtIsNullWorks(): void
{