Added tests for EntityImporter service

This commit is contained in:
Jan Böhmer 2023-03-14 00:17:13 +01:00
parent 945fd988b3
commit fe5dd065ed
2 changed files with 75 additions and 1 deletions

View file

@ -99,7 +99,7 @@ class PartNormalizer implements NormalizerInterface, DenormalizerInterface, Cach
$this->normalizeKeys($data);
//Empty IPN should be null, or we get a constraint error
if ($data['ipn'] === '') {
if (isset($data['ipn']) && $data['ipn'] === '') {
$data['ipn'] = null;
}