64 lines
2 KiB
YAML
64 lines
2 KiB
YAML
name: ButtonTest
|
|
class_comment: '# * @author Bernhard Schussek <bschussek@gmail.com>'
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: EventDispatcher
|
|
type: class
|
|
source: Symfony\Component\EventDispatcher\EventDispatcher
|
|
- name: ButtonBuilder
|
|
type: class
|
|
source: Symfony\Component\Form\ButtonBuilder
|
|
- name: AlreadySubmittedException
|
|
type: class
|
|
source: Symfony\Component\Form\Exception\AlreadySubmittedException
|
|
- name: FormBuilder
|
|
type: class
|
|
source: Symfony\Component\Form\FormBuilder
|
|
- name: FormFactory
|
|
type: class
|
|
source: Symfony\Component\Form\FormFactory
|
|
- name: FormRegistry
|
|
type: class
|
|
source: Symfony\Component\Form\FormRegistry
|
|
- name: ResolvedFormTypeFactory
|
|
type: class
|
|
source: Symfony\Component\Form\ResolvedFormTypeFactory
|
|
properties: []
|
|
methods:
|
|
- name: testDisabledIfParentIsDisabled
|
|
visibility: public
|
|
parameters:
|
|
- name: parentDisabled
|
|
- name: buttonDisabled
|
|
- name: result
|
|
comment: "# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# class ButtonTest\
|
|
\ extends TestCase\n# {\n# public function testSetParentOnSubmittedButton()\n\
|
|
# {\n# $this->expectException(AlreadySubmittedException::class);\n# $button =\
|
|
\ $this->getButtonBuilder('button')\n# ->getForm()\n# ;\n# \n# $button->submit('');\n\
|
|
# \n# $button->setParent($this->getFormBuilder()->getForm());\n# }\n# \n# /**\n\
|
|
# * @dataProvider getDisabledStates"
|
|
- name: getDisabledStates
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: getButtonBuilder
|
|
visibility: private
|
|
parameters:
|
|
- name: name
|
|
comment: null
|
|
- name: getFormBuilder
|
|
visibility: private
|
|
parameters: []
|
|
comment: null
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Symfony\Component\EventDispatcher\EventDispatcher
|
|
- Symfony\Component\Form\ButtonBuilder
|
|
- Symfony\Component\Form\Exception\AlreadySubmittedException
|
|
- Symfony\Component\Form\FormBuilder
|
|
- Symfony\Component\Form\FormFactory
|
|
- Symfony\Component\Form\FormRegistry
|
|
- Symfony\Component\Form\ResolvedFormTypeFactory
|
|
interfaces: []
|