private FormFactory
$factory;
private FormInterface
$form;
protected function setUp(): void
{ $this->factory =
new FormFactory(new FormRegistry([],
new ResolvedFormTypeFactory()));
$this->form =
$this->
createForm();
} public function testValidIfAllChildrenAreValid() { $this->form->
add($this->
getBuilder('firstName'
)->
getForm());
$this->form->
add($this->
getBuilder('lastName'
)->
getForm());
$this->form->
submit([ 'firstName' => 'Bernhard',
'lastName' => 'Schussek',
]);
$this->
assertTrue($this->form->
isValid());
} public function testInvalidIfChildIsInvalid() {