fix tests

This commit is contained in:
Christian Flothmann 2019-04-06 16:32:25 +02:00
parent 967fa368b2
commit 83c661d5cf

View File

@ -62,16 +62,16 @@ class SimpleFormTest extends AbstractFormTest
$config = new FormConfigBuilder($name, null, $this->dispatcher); $config = new FormConfigBuilder($name, null, $this->dispatcher);
$form = new Form($config); $form = new Form($config);
$this->assertEquals(new PropertyPath($propertyPath), $form->getPropertyPath()); $this->assertEquals($propertyPath, $form->getPropertyPath());
} }
public function provideFormNames() public function provideFormNames()
{ {
yield [null, null]; yield [null, null];
yield ['', null]; yield ['', null];
yield ['0', '0']; yield ['0', new PropertyPath('0')];
yield [0, '0']; yield [0, new PropertyPath('0')];
yield ['name', 'name']; yield ['name', new PropertyPath('name')];
} }
public function testDataIsInitializedToConfiguredValue() public function testDataIsInitializedToConfiguredValue()