mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Do not inject ObjectNormalizer into StructuralElementDenormalizer directly
This commit is contained in:
parent
43a68b96ae
commit
6821e668e4
2 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue