diff --git a/tests/Serializer/ApiResourceDenormalizerTest.php b/tests/Serializer/ApiResourceDenormalizerTest.php index 4c0d0b7..f588811 100644 --- a/tests/Serializer/ApiResourceDenormalizerTest.php +++ b/tests/Serializer/ApiResourceDenormalizerTest.php @@ -57,7 +57,10 @@ public function testNestedApiResourceDenormalization(string $format): void /** @var SerializerInterface $serializer */ $serializer = static::getContainer()->get(SerializerInterface::class); - $serializedEntity = $serializer->serialize($entity, $format, ['api_included' => ['color', 'hairs']]); + $serializedEntity = $serializer->serialize($entity, $format, [ + 'groups' => ['read'], + 'api_included' => ['color', 'hairs'], + ]); /** @var Puppy $deserializedEntity */ $deserializedEntity = $serializer->deserialize($serializedEntity, PuppyResourceDto::class, $format);