[Form] Dropped useless test that is guaranteed by OptionsParser tests and that needs to be adapted very often
This commit is contained in:
parent
649752c947
commit
68018a10da
@ -608,41 +608,8 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($parentBuilder, $builder->getParent());
|
||||
}
|
||||
|
||||
public function testUnknownOptions()
|
||||
{
|
||||
$type = new \Symfony\Component\Form\Extension\Core\Type\TextType();
|
||||
|
||||
$factory = new FormFactory(array(new \Symfony\Component\Form\Extension\Core\CoreExtension()));
|
||||
|
||||
$this->setExpectedException('Symfony\Component\Form\Exception\InvalidOptionException',
|
||||
'The options "invalid", "unknown" do not exist. Known options are: ' .
|
||||
'"attr", "by_reference", "data", "data_class", "disabled", ' .
|
||||
'"empty_data", "error_bubbling", "error_mapping", "invalid_message", ' .
|
||||
'"invalid_message_parameters", "label", "max_length", "pattern", ' .
|
||||
'"primitive", "property_path", "read_only", "required", ' .
|
||||
'"translation_domain", "trim"'
|
||||
);
|
||||
$factory->createNamedBuilder($type, "text", "value", array("invalid" => "opt", "unknown" => "opt"));
|
||||
}
|
||||
|
||||
public function testUnknownOption()
|
||||
{
|
||||
$type = new \Symfony\Component\Form\Extension\Core\Type\TextType();
|
||||
|
||||
$factory = new FormFactory(array(new \Symfony\Component\Form\Extension\Core\CoreExtension()));
|
||||
|
||||
$this->setExpectedException('Symfony\Component\Form\Exception\InvalidOptionException',
|
||||
'The option "unknown" does not exist. Known options are: "attr", ' .
|
||||
'"by_reference", "data", "data_class", "disabled", "empty_data", ' .
|
||||
'"error_bubbling", "error_mapping", "invalid_message", ' .
|
||||
'"invalid_message_parameters", "label", "max_length", "pattern", ' .
|
||||
'"primitive", "property_path", "read_only", "required", ' .
|
||||
'"translation_domain", "trim"'
|
||||
);
|
||||
$factory->createNamedBuilder($type, "text", "value", array("unknown" => "opt"));
|
||||
}
|
||||
|
||||
public function testFieldTypeCreatesDefaultValueForEmptyDataOption()
|
||||
public function testFormTypeCreatesDefaultValueForEmptyDataOption()
|
||||
{
|
||||
$factory = new FormFactory(array(new \Symfony\Component\Form\Extension\Core\CoreExtension()));
|
||||
|
||||
|
Reference in New Issue
Block a user