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 fb1c154

Browse filesBrowse files
committed
minor #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 | #30879 | License | MIT | Doc PR | Commits ------- 83c661d fix tests
2 parents 967fa36 + 83c661d commit fb1c154
Copy full SHA for fb1c154

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/SimpleFormTest.php
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.