Do not inject ObjectNormalizer into StructuralElementDenormalizer directly

This commit is contained in:
Jan Böhmer 2024-06-21 23:41:52 +02:00
parent 43a68b96ae
commit 6821e668e4
2 changed files with 14 additions and 4 deletions

View file

@ -37,6 +37,10 @@ class StructuralElementDenormalizerTest extends WebTestCase
//Get a service instance.
self::bootKernel();
$this->service = self::getContainer()->get(StructuralElementDenormalizer::class);
//We need to inject the serializer into the normalizer, as we use it directly
$serializer = self::getContainer()->get('serializer');
$this->service->setDenormalizer($serializer);
}
public function testSupportsDenormalization(): void