Symfony\Component\Form\Tests\CompoundFormTest::testValidIfAllChildrenAreValid PHP Method

testValidIfAllChildrenAreValid() public method

    public function testValidIfAllChildrenAreValid()
    {
        $this->form->add($this->getBuilder('firstName')->getForm());
        $this->form->add($this->getBuilder('lastName')->getForm());

        $this->form->submit(array(
            'firstName' => 'Bernhard',
            'lastName' => 'Schussek',
        ));

        $this->assertTrue($this->form->isValid());
    }
CompoundFormTest