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

testRemoveThrowsExceptionIfAlreadySubmitted() public method

    public function testRemoveThrowsExceptionIfAlreadySubmitted()
    {
        $this->form->add($this->getBuilder('foo')->setCompound(false)->getForm());
        $this->form->submit(array('foo' => 'bar'));
        $this->form->remove('foo');
    }
CompoundFormTest