Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a0fd637

Browse filesBrowse files
committed
minor #17936 [FrameworkBundle] Fix test for JsonSerializableNormalizer (dunglas)
This PR was merged into the 3.1-dev branch. Discussion ---------- [FrameworkBundle] Fix test for JsonSerializableNormalizer | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fix a test failure introduced by #17603 Commits ------- a696107 [FrameworkBundle] Fix test for JsonSerializableNormalizer
2 parents 992a696 + a696107 commit a0fd637
Copy full SHA for a0fd637

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,15 @@ public function testDateTimeNormalizerRegistered()
486486
$this->assertEquals(-910, $tag[0]['priority']);
487487
}
488488

489-
public function testJsonNormalizerRegistered()
489+
public function testJsonSerializableNormalizerRegistered()
490490
{
491491
if (!class_exists('Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer')) {
492492
$this->markTestSkipped('The JsonSerializableNormalizer has been introduced in the Serializer Component version 3.1.');
493493
}
494494

495495
$container = $this->createContainerFromFile('full');
496496

497-
$definition = $container->getDefinition('serializer.normalizer.json');
497+
$definition = $container->getDefinition('serializer.normalizer.json_serializable');
498498
$tag = $definition->getTag('serializer.normalizer');
499499

500500
$this->assertEquals(JsonSerializableNormalizer::class, $definition->getClass());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.