8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93368df commit 9edffd5Copy full SHA for 9edffd5
src/Symfony/Component/Form/Tests/SimpleFormTest.php
@@ -54,6 +54,26 @@ public function getIterator()
54
55
class SimpleFormTest extends AbstractFormTest
56
{
57
+ /**
58
+ * @dataProvider provideFormNames
59
+ */
60
+ public function testGetPropertyPath($name, $propertyPath)
61
+ {
62
+ $config = new FormConfigBuilder($name, null, $this->dispatcher);
63
+ $form = new Form($config);
64
+
65
+ $this->assertEquals(new PropertyPath($propertyPath), $form->getPropertyPath());
66
+ }
67
68
+ public function provideFormNames()
69
70
+ yield [null, null];
71
+ yield ['', null];
72
+ yield ['0', '0'];
73
+ yield [0, '0'];
74
+ yield ['name', 'name'];
75
76
77
public function testDataIsInitializedToConfiguredValue()
78
79
$model = new FixedDataTransformer([
0 commit comments