fix tests
This commit is contained in:
parent
967fa368b2
commit
83c661d5cf
@ -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()
|
||||||
|
Reference in New Issue
Block a user