getButtonBuilder example

use Symfony\Component\Form\FormRegistry;
use Symfony\Component\Form\ResolvedFormTypeFactory;

/** * @author Bernhard Schussek <bschussek@gmail.com> */
class ButtonTest extends TestCase
{
    public function testSetParentOnSubmittedButton()
    {
        $this->expectException(AlreadySubmittedException::class);
        $button = $this->getButtonBuilder('button')
            ->getForm()
        ;

        $button->submit('');

        $button->setParent($this->getFormBuilder()->getForm());
    }

    /** * @dataProvider getDisabledStates */
    
Home | Imprint | This part of the site doesn't use cookies.