platform/api/symfony/Component/Form/Tests/SimpleFormTest.yaml

479 lines
12 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: SimpleFormTest
class_comment: null
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: EventDispatcher
type: class
source: Symfony\Component\EventDispatcher\EventDispatcher
- name: AlreadySubmittedException
type: class
source: Symfony\Component\Form\Exception\AlreadySubmittedException
- name: LogicException
type: class
source: Symfony\Component\Form\Exception\LogicException
- name: RuntimeException
type: class
source: Symfony\Component\Form\Exception\RuntimeException
- name: TransformationFailedException
type: class
source: Symfony\Component\Form\Exception\TransformationFailedException
- name: DataMapper
type: class
source: Symfony\Component\Form\Extension\Core\DataMapper\DataMapper
- name: Form
type: class
source: Symfony\Component\Form\Form
- name: FormBuilder
type: class
source: Symfony\Component\Form\FormBuilder
- name: FormConfigBuilder
type: class
source: Symfony\Component\Form\FormConfigBuilder
- name: FormError
type: class
source: Symfony\Component\Form\FormError
- name: FormEvent
type: class
source: Symfony\Component\Form\FormEvent
- name: FormEvents
type: class
source: Symfony\Component\Form\FormEvents
- name: FormFactory
type: class
source: Symfony\Component\Form\FormFactory
- name: FormInterface
type: class
source: Symfony\Component\Form\FormInterface
- name: FormRegistry
type: class
source: Symfony\Component\Form\FormRegistry
- name: FormView
type: class
source: Symfony\Component\Form\FormView
- name: RequestHandlerInterface
type: class
source: Symfony\Component\Form\RequestHandlerInterface
- name: ResolvedFormTypeFactory
type: class
source: Symfony\Component\Form\ResolvedFormTypeFactory
- name: ResolvedFormTypeInterface
type: class
source: Symfony\Component\Form\ResolvedFormTypeInterface
- name: FixedDataTransformer
type: class
source: Symfony\Component\Form\Tests\Fixtures\FixedDataTransformer
- name: FixedFilterListener
type: class
source: Symfony\Component\Form\Tests\Fixtures\FixedFilterListener
- name: Map
type: class
source: Symfony\Component\Form\Tests\Fixtures\Map
- name: PropertyPath
type: class
source: Symfony\Component\PropertyAccess\PropertyPath
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: count
comment: null
- name: count
visibility: public
parameters: []
comment: null
- name: __construct
visibility: public
parameters:
- name: count
comment: null
- name: getIterator
visibility: public
parameters: []
comment: null
- name: setUp
visibility: protected
parameters: []
comment: null
- name: testGetPropertyPath
visibility: public
parameters:
- name: name
- name: propertyPath
comment: '# * @dataProvider provideFormNames'
- name: provideFormNames
visibility: public
parameters: []
comment: null
- name: testDataIsInitializedToConfiguredValue
visibility: public
parameters: []
comment: null
- name: testDataTransformationFailure
visibility: public
parameters: []
comment: null
- name: testDataIsInitializedFromSubmit
visibility: public
parameters: []
comment: null
- name: testFalseIsConvertedToNull
visibility: public
parameters: []
comment: null
- name: testSubmitThrowsExceptionIfAlreadySubmitted
visibility: public
parameters: []
comment: null
- name: testSubmitIsIgnoredIfDisabled
visibility: public
parameters: []
comment: null
- name: testNeverRequiredIfParentNotRequired
visibility: public
parameters: []
comment: null
- name: testRequired
visibility: public
parameters: []
comment: null
- name: testNotRequired
visibility: public
parameters: []
comment: null
- name: testAlwaysDisabledIfParentDisabled
visibility: public
parameters:
- name: parentDisabled
- name: disabled
- name: result
comment: '# * @dataProvider getDisabledStates'
- name: getDisabledStates
visibility: public
parameters: []
comment: null
- name: testGetRootReturnsRootOfParent
visibility: public
parameters: []
comment: null
- name: testGetRootReturnsSelfIfNoParent
visibility: public
parameters: []
comment: null
- name: testEmptyIfEmptyArray
visibility: public
parameters: []
comment: null
- name: testEmptyIfEmptyCountable
visibility: public
parameters: []
comment: null
- name: testNotEmptyIfFilledCountable
visibility: public
parameters: []
comment: null
- name: testEmptyIfEmptyTraversable
visibility: public
parameters: []
comment: null
- name: testNotEmptyIfFilledTraversable
visibility: public
parameters: []
comment: null
- name: testEmptyIfNull
visibility: public
parameters: []
comment: null
- name: testEmptyIfEmptyString
visibility: public
parameters: []
comment: null
- name: testNotEmptyIfText
visibility: public
parameters: []
comment: null
- name: testValidIfSubmitted
visibility: public
parameters: []
comment: null
- name: testValidIfSubmittedAndDisabled
visibility: public
parameters: []
comment: null
- name: testNotValidIfErrors
visibility: public
parameters: []
comment: null
- name: testHasErrors
visibility: public
parameters: []
comment: null
- name: testHasNoErrors
visibility: public
parameters: []
comment: null
- name: testSetParentThrowsExceptionIfAlreadySubmitted
visibility: public
parameters: []
comment: null
- name: testSubmitted
visibility: public
parameters: []
comment: null
- name: testNotSubmitted
visibility: public
parameters: []
comment: null
- name: testSetDataThrowsExceptionIfAlreadySubmitted
visibility: public
parameters: []
comment: null
- name: testSetDataClonesObjectIfNotByReference
visibility: public
parameters: []
comment: null
- name: testSetDataDoesNotCloneObjectIfByReference
visibility: public
parameters: []
comment: null
- name: testSetDataExecutesTransformationChain
visibility: public
parameters: []
comment: null
- name: testSetDataExecutesViewTransformersInOrder
visibility: public
parameters: []
comment: null
- name: testSetDataExecutesModelTransformersInReverseOrder
visibility: public
parameters: []
comment: null
- name: testSetDataConvertsScalarToStringIfNoTransformer
visibility: public
parameters: []
comment: null
- name: testSetDataConvertsScalarToStringIfOnlyModelTransformer
visibility: public
parameters: []
comment: null
- name: testSetDataConvertsNullToStringIfNoTransformer
visibility: public
parameters: []
comment: null
- name: testSetDataIsIgnoredIfDataIsLocked
visibility: public
parameters: []
comment: null
- name: testPreSetDataChangesDataIfDataIsLocked
visibility: public
parameters: []
comment: null
- name: testSubmitConvertsEmptyToNullIfNoTransformer
visibility: public
parameters: []
comment: null
- name: testSubmitExecutesTransformationChain
visibility: public
parameters: []
comment: null
- name: testSubmitExecutesViewTransformersInReverseOrder
visibility: public
parameters: []
comment: null
- name: testSubmitExecutesModelTransformersInOrder
visibility: public
parameters: []
comment: null
- name: testSynchronizedByDefault
visibility: public
parameters: []
comment: null
- name: testSynchronizedAfterSubmission
visibility: public
parameters: []
comment: null
- name: testNotSynchronizedIfViewReverseTransformationFailed
visibility: public
parameters: []
comment: null
- name: testNotSynchronizedIfModelReverseTransformationFailed
visibility: public
parameters: []
comment: null
- name: testEmptyDataCreatedBeforeTransforming
visibility: public
parameters: []
comment: null
- name: testEmptyDataFromClosure
visibility: public
parameters: []
comment: null
- name: testSubmitResetsErrors
visibility: public
parameters: []
comment: null
- name: testCreateView
visibility: public
parameters: []
comment: null
- name: testCreateViewWithParent
visibility: public
parameters: []
comment: null
- name: testCreateViewWithExplicitParent
visibility: public
parameters: []
comment: null
- name: testFormCanHaveEmptyName
visibility: public
parameters: []
comment: null
- name: testSetNullParentWorksWithEmptyName
visibility: public
parameters: []
comment: null
- name: testFormCannotHaveEmptyNameNotInRootLevel
visibility: public
parameters: []
comment: null
- name: testGetPropertyPathReturnsConfiguredPath
visibility: public
parameters: []
comment: null
- name: testGetPropertyPathDefaultsToNameIfParentHasDataClass
visibility: public
parameters: []
comment: null
- name: testGetPropertyPathDefaultsToIndexedNameIfParentDataClassIsNull
visibility: public
parameters: []
comment: null
- name: testGetPropertyPathDefaultsToNameIfFirstParentWithoutInheritDataHasDataClass
visibility: public
parameters: []
comment: null
- name: testGetPropertyPathDefaultsToIndexedNameIfDataClassOfFirstParentWithoutInheritDataIsNull
visibility: public
parameters: []
comment: null
- name: testViewDataMayBeObjectIfDataClassIsNull
visibility: public
parameters: []
comment: null
- name: testViewDataMayBeArrayAccessIfDataClassIsNull
visibility: public
parameters: []
comment: null
- name: testViewDataMustBeObjectIfDataClassIsSet
visibility: public
parameters: []
comment: null
- name: testSetDataCannotInvokeItself
visibility: public
parameters: []
comment: null
- name: testSubmittingWrongDataIsIgnored
visibility: public
parameters: []
comment: null
- name: testHandleRequestForwardsToRequestHandler
visibility: public
parameters: []
comment: null
- name: testFormInheritsParentData
visibility: public
parameters: []
comment: null
- name: testInheritDataDisallowsSetData
visibility: public
parameters: []
comment: null
- name: testGetDataRequiresParentToBeSetIfInheritData
visibility: public
parameters: []
comment: null
- name: testGetNormDataRequiresParentToBeSetIfInheritData
visibility: public
parameters: []
comment: null
- name: testGetViewDataRequiresParentToBeSetIfInheritData
visibility: public
parameters: []
comment: null
- name: testPostSubmitDataIsNullIfInheritData
visibility: public
parameters: []
comment: null
- name: testSubmitIsNeverFiredIfInheritData
visibility: public
parameters: []
comment: null
- name: testInitializeSetsDefaultData
visibility: public
parameters: []
comment: null
- name: testInitializeFailsIfParent
visibility: public
parameters: []
comment: null
- name: testCannotCallGetDataInPreSetDataListenerIfDataHasNotAlreadyBeenSet
visibility: public
parameters: []
comment: null
- name: testCannotCallGetNormDataInPreSetDataListener
visibility: public
parameters: []
comment: null
- name: testCannotCallGetViewDataInPreSetDataListener
visibility: public
parameters: []
comment: null
- name: testIsEmptyCallback
visibility: public
parameters: []
comment: null
- name: createForm
visibility: private
parameters: []
comment: null
- name: getBuilder
visibility: private
parameters:
- name: name
default: '''name'''
- name: dataClass
default: 'null'
- name: options
default: '[]'
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\EventDispatcher\EventDispatcher
- Symfony\Component\Form\Exception\AlreadySubmittedException
- Symfony\Component\Form\Exception\LogicException
- Symfony\Component\Form\Exception\RuntimeException
- Symfony\Component\Form\Exception\TransformationFailedException
- Symfony\Component\Form\Extension\Core\DataMapper\DataMapper
- Symfony\Component\Form\Form
- Symfony\Component\Form\FormBuilder
- Symfony\Component\Form\FormConfigBuilder
- Symfony\Component\Form\FormError
- Symfony\Component\Form\FormEvent
- Symfony\Component\Form\FormEvents
- Symfony\Component\Form\FormFactory
- Symfony\Component\Form\FormInterface
- Symfony\Component\Form\FormRegistry
- Symfony\Component\Form\FormView
- Symfony\Component\Form\RequestHandlerInterface
- Symfony\Component\Form\ResolvedFormTypeFactory
- Symfony\Component\Form\ResolvedFormTypeInterface
- Symfony\Component\Form\Tests\Fixtures\FixedDataTransformer
- Symfony\Component\Form\Tests\Fixtures\FixedFilterListener
- Symfony\Component\Form\Tests\Fixtures\Map
- Symfony\Component\PropertyAccess\PropertyPath
interfaces:
- \Countable
- \IteratorAggregate