[Form] Fixed the tests

This commit is contained in:
Christophe Coevoet 2012-04-13 19:11:38 +02:00
parent 9e956a8ecd
commit 538819a8bf

View File

@ -1294,16 +1294,6 @@ class FormTest extends \PHPUnit_Framework_TestCase
->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)
{
return new FormBuilder($name, $this->factory, $dispatcher ?: $this->dispatcher);