use Symfony\Component\Form\FormRegistry;
use Symfony\Component\Form\ResolvedFormTypeFactory;
/**
* @author Bernhard Schussek <
[email protected]>
*/
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
*/