fix tests

This commit is contained in:
Christian Flothmann 2019-04-06 16:32:25 +02:00
parent 967fa368b2
commit 83c661d5cf
1 changed files with 4 additions and 4 deletions

View File

@ -62,16 +62,16 @@ class SimpleFormTest extends AbstractFormTest
$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()