From 83c661d5cf18d572bdf4a286af8cec5a51e9c9b3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 6 Apr 2019 16:32:25 +0200 Subject: [PATCH] fix tests --- src/Symfony/Component/Form/Tests/SimpleFormTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/SimpleFormTest.php b/src/Symfony/Component/Form/Tests/SimpleFormTest.php index 5233a8f1aae1..32c21c8432b7 100644 --- a/src/Symfony/Component/Form/Tests/SimpleFormTest.php +++ b/src/Symfony/Component/Form/Tests/SimpleFormTest.php @@ -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()