$fileContent =
$this->fileSystem->
read($filePath);
$csvRows =
explode(\PHP_EOL,
(string) $fileContent);
static::
assertTrue($this->fileSystem->
directoryExists($this->
getContainer()->
getParameter('product_export.directory'
)));
static::
assertTrue($this->fileSystem->
fileExists($filePath));
static::
assertCount(4,
$csvRows);
/** @var ProductExportEntity|null $newExport */
$newExport =
$this->productExportRepository->
search(new Criteria([$exportId]),
$this->context
)->
first();
static::
assertNotNull($newExport);
static::
assertGreaterThan($previousGeneratedAt,
$newExport->
getGeneratedAt());
} /**
* @group quarantined
*/
public function testSkipGenerateByCronjobFalseProductExports(): void
{ $this->
createProductStream();
// only get seconds, not microseconds, for better comparison to DB
/** @var \DateTime $previousGeneratedAt */
$previousGeneratedAt = \DateTime::
createFromFormat('U',
(string) time());