Skip to content

Commit fb1c154

Browse files
committed
minor symfony#30905 [Form] fix tests (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] fix tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#30879 | License | MIT | Doc PR | Commits ------- 83c661d fix tests
2 parents 967fa36 + 83c661d commit fb1c154

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Form/Tests/SimpleFormTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ public function testGetPropertyPath($name, $propertyPath)
6262
$config = new FormConfigBuilder($name, null, $this->dispatcher);
6363
$form = new Form($config);
6464

65-
$this->assertEquals(new PropertyPath($propertyPath), $form->getPropertyPath());
65+
$this->assertEquals($propertyPath, $form->getPropertyPath());
6666
}
6767

6868
public function provideFormNames()
6969
{
7070
yield [null, null];
7171
yield ['', null];
72-
yield ['0', '0'];
73-
yield [0, '0'];
74-
yield ['name', 'name'];
72+
yield ['0', new PropertyPath('0')];
73+
yield [0, new PropertyPath('0')];
74+
yield ['name', new PropertyPath('name')];
7575
}
7676

7777
public function testDataIsInitializedToConfiguredValue()

0 commit comments

Comments
 (0)