Fixed PHPunit tests

This commit is contained in:
Jan Böhmer
2025-07-13 20:06:38 +02:00
parent db810445fb
commit dc25397469
5 changed files with 26 additions and 9 deletions

View File

@@ -41,6 +41,9 @@ class StructuralElementNormalizerTest extends WebTestCase
//Get an service instance.
self::bootKernel();
$this->service = self::getContainer()->get(StructuralElementNormalizer::class);
//Inject the serializer, as the normalizer as this is not handled by the DI container
$this->service->setNormalizer(self::getContainer()->get('serializer'));
}
public function testNormalize(): void