Skip to content

Commit

Permalink
minor #30905 [Form] fix tests (xabbuh)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Apr 6, 2019
2 parents 967fa36 + 83c661d commit fb1c154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Symfony/Component/Form/Tests/SimpleFormTest.php
Expand Up @@ -62,16 +62,16 @@ public function testGetPropertyPath($name, $propertyPath)
$config = new FormConfigBuilder($name, null, $this->dispatcher);
$form = new Form($config);

$this->assertEquals(new PropertyPath($propertyPath), $form->getPropertyPath());
$this->assertEquals($propertyPath, $form->getPropertyPath());
}

public function provideFormNames()
{
yield [null, null];
yield ['', null];
yield ['0', '0'];
yield [0, '0'];
yield ['name', 'name'];
yield ['0', new PropertyPath('0')];
yield [0, new PropertyPath('0')];
yield ['name', new PropertyPath('name')];
}

public function testDataIsInitializedToConfiguredValue()
Expand Down

0 comments on commit fb1c154

Please sign in to comment.