File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1818use Symfony \Component \DependencyInjection \Loader \ClosureLoader ;
1919use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
2020use Symfony \Component \DependencyInjection \Reference ;
21+ use Symfony \Component \Serializer \Normalizer \ObjectNormalizer ;
2122use Symfony \Component \Validator \Validation ;
2223
2324abstract class FrameworkExtensionTest extends TestCase
@@ -442,6 +443,17 @@ public function testSerializerEnabled()
442443 $ this ->assertTrue ($ container ->has ('serializer ' ));
443444 }
444445
446+ public function testObjectNormalizerRegistered ()
447+ {
448+ $ container = $ this ->createContainerFromFile ('full ' );
449+
450+ $ definition = $ container ->getDefinition ('serializer.normalizer.object ' );
451+ $ tag = $ definition ->getTag ('serializer.normalizer ' );
452+
453+ $ this ->assertEquals (ObjectNormalizer::class, $ definition ->getClass ());
454+ $ this ->assertEquals (-1000 , $ tag [0 ]['priority ' ]);
455+ }
456+
445457 public function testAssetHelperWhenAssetsAreEnabled ()
446458 {
447459 $ container = $ this ->createContainerFromFile ('full ' );
You can’t perform that action at this time.
0 commit comments