Added tests for serializer normalizers

This commit is contained in:
Jan Böhmer 2023-03-14 00:02:40 +01:00
parent 3bbff0aecf
commit 945fd988b3
7 changed files with 397 additions and 2 deletions

View file

@ -26,7 +26,7 @@ use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface;
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class BigNumberSerializer implements NormalizerInterface, CacheableSupportsMethodInterface
class BigNumberNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface
{
public function supportsNormalization($data, string $format = null): bool

View file

@ -40,7 +40,8 @@ class PartNormalizer implements NormalizerInterface, DenormalizerInterface, Cach
'amount' => 'instock',
'mpn' => 'manufacturer_product_number',
'spn' => 'supplier_part_number',
'supplier_product_number' => 'supplier_part_number'
'supplier_product_number' => 'supplier_part_number',
'storage_location' => 'storelocation',
];
private ObjectNormalizer $normalizer;