$form =
$this->
createForm([ 'validation_groups' => false,
]);
$this->
assertEquals([],
$form->
getConfig()->
getOption('validation_groups'
));
} public function testValidationGroupsCanBeSetToCallback() { $form =
$this->
createForm([ 'validation_groups' =>
$this->
testValidationGroupsCanBeSetToCallback(...
),
]);
$this->
assertIsCallable($form->
getConfig()->
getOption('validation_groups'
));
} public function testValidationGroupsCanBeSetToClosure() { $form =
$this->
createForm([ 'validation_groups' =>
function DFormInterface
$form) { },
]);