[Form] Fixed the tests
This commit is contained in:
parent
9e956a8ecd
commit
538819a8bf
@ -1294,16 +1294,6 @@ class FormTest extends \PHPUnit_Framework_TestCase
|
|||||||
->getForm();
|
->getForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetValidatorsReturnsValidators()
|
|
||||||
{
|
|
||||||
$validator = $this->getFormValidator();
|
|
||||||
$form = $this->getBuilder()
|
|
||||||
->addValidator($validator)
|
|
||||||
->getForm();
|
|
||||||
|
|
||||||
$this->assertEquals(array($validator), $form->getValidators());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getBuilder($name = 'name', EventDispatcherInterface $dispatcher = null)
|
protected function getBuilder($name = 'name', EventDispatcherInterface $dispatcher = null)
|
||||||
{
|
{
|
||||||
return new FormBuilder($name, $this->factory, $dispatcher ?: $this->dispatcher);
|
return new FormBuilder($name, $this->factory, $dispatcher ?: $this->dispatcher);
|
||||||
|
Reference in New Issue
Block a user