/**
* Prepare a defined number of test data.
*/
protected function prepareImportExportActionControllerTestData(int
$num = 1
): array
{ $data =
[];
for ($i = 1;
$i <=
$num; ++
$i) { $uuid = Uuid::
randomHex();
$mimetypes =
$this->
getValidMimeTypes();
$data[Uuid::
fromHexToBytes($uuid)] =
[ 'id' =>
$uuid,
'name' => 'Foobar' .
$i,
'label' => 'Foobar' .
$i,
'systemDefault'
=> ($i % 2 === 0
),
'sourceEntity' => 'product',
'fileType' =>
$mimetypes[$i % \
count($mimetypes)],
'delimiter' => ';',
'enclosure' => '"',
'createdAt' =>
date('Y-m-d H:i:s'
),