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 18
18
use Symfony \Component \DependencyInjection \Loader \ClosureLoader ;
19
19
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
20
20
use Symfony \Component \DependencyInjection \Reference ;
21
+ use Symfony \Component \Serializer \Normalizer \ObjectNormalizer ;
21
22
use Symfony \Component \Validator \Validation ;
22
23
23
24
abstract class FrameworkExtensionTest extends TestCase
@@ -442,6 +443,17 @@ public function testSerializerEnabled()
442
443
$ this ->assertTrue ($ container ->has ('serializer ' ));
443
444
}
444
445
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
+
445
457
public function testAssetHelperWhenAssetsAreEnabled ()
446
458
{
447
459
$ container = $ this ->createContainerFromFile ('full ' );
You can’t perform that action at this time.
0 commit comments