$num = 5;
$data =
$this->
prepareImportExportProfileTestData($num);
$this->repository->
create(array_values($data),
$this->context
);
foreach ($data as $expect) { $id =
$expect['id'
];
/** @var ImportExportProfileEntity $importExportProfile */
$importExportProfile =
$this->repository->
search(new Criteria([$id]),
$this->context
)->
get($id);
static::
assertEquals($expect['name'
],
$importExportProfile->
getName());
static::
assertEquals($expect['label'
],
$importExportProfile->
getLabel());
static::
assertEquals($expect['systemDefault'
],
$importExportProfile->
getSystemDefault());
static::
assertEquals($expect['sourceEntity'
],
$importExportProfile->
getSourceEntity());
static::
assertEquals($expect['fileType'
],
$importExportProfile->
getFileType());
static::
assertEquals($expect['delimiter'
],
$importExportProfile->
getDelimiter());
static::
assertEquals($expect['enclosure'
],
$importExportProfile->
getEnclosure());
static::
assertEquals($expect['mapping'
],
$importExportProfile->
getMapping());
} } public function testImportExportProfileReadNoResult(): void
{ $num = 3;