File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/Symfony/Component/Form
Tests/Extension/Core/Type Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ public function configureOptions(OptionsResolver $resolver)
193
193
]);
194
194
195
195
$ resolver ->setAllowedTypes ('label_attr ' , 'array ' );
196
+ $ resolver ->setAllowedTypes ('action ' , 'string ' );
196
197
$ resolver ->setAllowedTypes ('upload_max_size_message ' , ['callable ' ]);
197
198
$ resolver ->setAllowedTypes ('help ' , ['string ' , 'null ' ]);
198
199
$ resolver ->setAllowedTypes ('help_attr ' , 'array ' );
Original file line number Diff line number Diff line change @@ -341,6 +341,12 @@ public function testAttributesException()
341
341
$ this ->factory ->create (static ::TESTED_TYPE , null , ['attr ' => '' ]);
342
342
}
343
343
344
+ public function testActionCannotBeNull ()
345
+ {
346
+ $ this ->expectException ('Symfony\Component\OptionsResolver\Exception\InvalidOptionsException ' );
347
+ $ this ->factory ->create (static ::TESTED_TYPE , null , ['action ' => null ]);
348
+ }
349
+
344
350
public function testNameCanBeEmptyString ()
345
351
{
346
352
$ form = $ this ->factory ->createNamed ('' , static ::TESTED_TYPE );
You can’t perform that action at this time.
0 commit comments