Skip to content

Commit b11bd87

Browse files
committed
minor symfony#58061 [Serializer] Fix CamelCaseToSnakeCaseNameConverterTest::testDenormalizeWithContext (dunglas)
This PR was merged into the 7.1 branch. Discussion ---------- [Serializer] Fix CamelCaseToSnakeCaseNameConverterTest::testDenormalizeWithContext | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | n/a | License | MIT Currently, this test doesn't test anything. Commits ------- b0d4fca [Serializer] Fix CamelCaseToSnakeCaseNameConverterTest::testDenormalizeWithContext
2 parents 00f1b63 + b0d4fca commit b11bd87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public static function attributeProvider()
6161
public function testDenormalizeWithContext()
6262
{
6363
$nameConverter = new CamelCaseToSnakeCaseNameConverter(null, true);
64-
$denormalizedValue = $nameConverter->denormalize('last_name', null, null, [CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES]);
64+
$denormalizedValue = $nameConverter->denormalize('last_name', null, null, [CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES => true]);
6565

66-
$this->assertSame($denormalizedValue, 'lastName');
66+
$this->assertSame('lastName', $denormalizedValue);
6767
}
6868

6969
public function testErrorDenormalizeWithContext()

0 commit comments

Comments
 (0)