mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-12 10:19:36 +01:00
Do not inject ObjectNormalizer into StructuralElementDenormalizer directly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user