PHP Class Symfony\Component\Form\Tests\SimpleFormTest

Inheritance: extends AbstractFormTest
Show file Open project: symfony/symfony

Public Methods

Method Description
getDisabledStates ( )
testAlwaysDisabledIfParentDisabled ( $parentDisabled, $disabled, $result )
testCreateView ( )
testCreateViewWithExplicitParent ( )
testCreateViewWithParent ( )
testDataIsInitializedFromSubmit ( ) https://github.com/symfony/symfony/commit/d4f4038f6daf7cf88ca7c7ab089473cce5ebf7d8#commitcomment-1632879
testDataIsInitializedToConfiguredValue ( )
testDataTransformationFailure ( )
testEmptyDataCreatedBeforeTransforming ( )
testEmptyDataFromClosure ( )
testEmptyIfEmptyArray ( )
testEmptyIfEmptyCountable ( )
testEmptyIfEmptyString ( )
testEmptyIfEmptyTraversable ( )
testEmptyIfNull ( )
testFalseIsConvertedToNull ( ) https://github.com/symfony/symfony/pull/7789
testFormCanHaveEmptyName ( )
testFormCannotHaveEmptyNameNotInRootLevel ( )
testFormInheritsParentData ( )
testGetDataRequiresParentToBeSetIfInheritData ( )
testGetNormDataRequiresParentToBeSetIfInheritData ( )
testGetPropertyPathDefaultsToIndexedNameIfDataClassOfFirstParentWithoutInheritDataIsNull ( )
testGetPropertyPathDefaultsToIndexedNameIfParentDataClassIsNull ( ) see https://github.com/symfony/symfony/issues/3903
testGetPropertyPathDefaultsToNameIfFirstParentWithoutInheritDataHasDataClass ( )
testGetPropertyPathDefaultsToNameIfParentHasDataClass ( ) see https://github.com/symfony/symfony/issues/3903
testGetPropertyPathReturnsConfiguredPath ( )
testGetRootReturnsRootOfParent ( )
testGetRootReturnsSelfIfNoParent ( )
testGetViewDataRequiresParentToBeSetIfInheritData ( )
testHandleRequestForwardsToRequestHandler ( )
testHasErrors ( )
testHasNoErrors ( )
testInheritDataDisallowsSetData ( )
testInitializeFailsIfParent ( )
testInitializeSetsDefaultData ( )
testNeverRequiredIfParentNotRequired ( )
testNotEmptyIfFilledCountable ( )
testNotEmptyIfFilledTraversable ( )
testNotEmptyIfText ( )
testNotRequired ( )
testNotSubmitted ( )
testNotSynchronizedIfModelReverseTransformationFailed ( )
testNotSynchronizedIfViewReverseTransformationFailed ( )
testNotValidIfErrors ( )
testNotValidIfNotSubmitted ( )
testPostSubmitDataIsNullIfInheritData ( )
testRequired ( )
testSetDataCannotInvokeItself ( )
testSetDataClonesObjectIfNotByReference ( )
testSetDataConvertsNullToStringIfNoTransformer ( ) * NULL remains NULL in app and norm format to remove the need to treat empty values and NULL explicitly in the application
testSetDataConvertsScalarToStringIfNoTransformer ( ) * When there is no data transformer, the data must have the same format in all three representations
testSetDataConvertsScalarToStringIfOnlyModelTransformer ( ) * Data in client format should, if possible, always be a string to facilitate differentiation between '0' and ''
testSetDataDoesNotCloneObjectIfByReference ( )
testSetDataExecutesModelTransformersInReverseOrder ( )
testSetDataExecutesTransformationChain ( )
testSetDataExecutesViewTransformersInOrder ( )
testSetDataIsIgnoredIfDataIsLocked ( )
testSetDataThrowsExceptionIfAlreadySubmitted ( )
testSetNullParentWorksWithEmptyName ( )
testSetParentThrowsExceptionIfAlreadySubmitted ( )
testSubmitConvertsEmptyToNullIfNoTransformer ( )
testSubmitExecutesModelTransformersInOrder ( )
testSubmitExecutesTransformationChain ( )
testSubmitExecutesViewTransformersInReverseOrder ( )
testSubmitIsIgnoredIfDisabled ( )
testSubmitIsNeverFiredIfInheritData ( )
testSubmitResetsErrors ( )
testSubmitThrowsExceptionIfAlreadySubmitted ( )
testSubmitted ( )
testSubmittingWrongDataIsIgnored ( )
testSynchronizedAfterSubmission ( )
testSynchronizedByDefault ( )
testValidIfSubmitted ( )
testValidIfSubmittedAndDisabled ( )
testViewDataMayBeArrayAccessIfDataClassIsNull ( )
testViewDataMayBeObjectIfDataClassIsNull ( )
testViewDataMustBeObjectIfDataClassIsSet ( )

Protected Methods

Method Description
createForm ( )

Method Details

createForm() protected method

protected createForm ( )

getDisabledStates() public method

public getDisabledStates ( )

testAlwaysDisabledIfParentDisabled() public method

public testAlwaysDisabledIfParentDisabled ( $parentDisabled, $disabled, $result )

testCreateView() public method

public testCreateView ( )

testCreateViewWithExplicitParent() public method

testCreateViewWithParent() public method

testDataIsInitializedFromSubmit() public method

https://github.com/symfony/symfony/commit/d4f4038f6daf7cf88ca7c7ab089473cce5ebf7d8#commitcomment-1632879

testDataIsInitializedToConfiguredValue() public method

testDataTransformationFailure() public method

testEmptyDataCreatedBeforeTransforming() public method

testEmptyDataFromClosure() public method

testEmptyIfEmptyArray() public method

testEmptyIfEmptyCountable() public method

testEmptyIfEmptyString() public method

testEmptyIfEmptyTraversable() public method

testEmptyIfNull() public method

public testEmptyIfNull ( )

testFalseIsConvertedToNull() public method

https://github.com/symfony/symfony/pull/7789

testFormCanHaveEmptyName() public method

testFormCannotHaveEmptyNameNotInRootLevel() public method

testFormInheritsParentData() public method

testGetDataRequiresParentToBeSetIfInheritData() public method

testGetNormDataRequiresParentToBeSetIfInheritData() public method

testGetPropertyPathDefaultsToIndexedNameIfDataClassOfFirstParentWithoutInheritDataIsNull() public method

testGetPropertyPathDefaultsToIndexedNameIfParentDataClassIsNull() public method

see https://github.com/symfony/symfony/issues/3903

testGetPropertyPathDefaultsToNameIfFirstParentWithoutInheritDataHasDataClass() public method

testGetPropertyPathDefaultsToNameIfParentHasDataClass() public method

see https://github.com/symfony/symfony/issues/3903

testGetPropertyPathReturnsConfiguredPath() public method

testGetRootReturnsRootOfParent() public method

testGetRootReturnsSelfIfNoParent() public method

testGetViewDataRequiresParentToBeSetIfInheritData() public method

testHandleRequestForwardsToRequestHandler() public method

testHasErrors() public method

public testHasErrors ( )

testHasNoErrors() public method

public testHasNoErrors ( )

testInheritDataDisallowsSetData() public method

testInitializeFailsIfParent() public method

testInitializeSetsDefaultData() public method

testNeverRequiredIfParentNotRequired() public method

testNotEmptyIfFilledCountable() public method

testNotEmptyIfFilledTraversable() public method

testNotEmptyIfText() public method

public testNotEmptyIfText ( )

testNotRequired() public method

public testNotRequired ( )

testNotSubmitted() public method

public testNotSubmitted ( )

testNotSynchronizedIfModelReverseTransformationFailed() public method

testNotSynchronizedIfViewReverseTransformationFailed() public method

testNotValidIfErrors() public method

testNotValidIfNotSubmitted() public method

testPostSubmitDataIsNullIfInheritData() public method

testRequired() public method

public testRequired ( )

testSetDataCannotInvokeItself() public method

testSetDataClonesObjectIfNotByReference() public method

testSetDataConvertsNullToStringIfNoTransformer() public method

* NULL remains NULL in app and norm format to remove the need to treat empty values and NULL explicitly in the application

testSetDataConvertsScalarToStringIfNoTransformer() public method

* When there is no data transformer, the data must have the same format in all three representations

testSetDataConvertsScalarToStringIfOnlyModelTransformer() public method

* Data in client format should, if possible, always be a string to facilitate differentiation between '0' and ''

testSetDataDoesNotCloneObjectIfByReference() public method

testSetDataExecutesModelTransformersInReverseOrder() public method

testSetDataExecutesTransformationChain() public method

testSetDataExecutesViewTransformersInOrder() public method

testSetDataIsIgnoredIfDataIsLocked() public method

testSetDataThrowsExceptionIfAlreadySubmitted() public method

testSetNullParentWorksWithEmptyName() public method

testSetParentThrowsExceptionIfAlreadySubmitted() public method

testSubmitConvertsEmptyToNullIfNoTransformer() public method

testSubmitExecutesModelTransformersInOrder() public method

testSubmitExecutesTransformationChain() public method

testSubmitExecutesViewTransformersInReverseOrder() public method

testSubmitIsIgnoredIfDisabled() public method

testSubmitIsNeverFiredIfInheritData() public method

testSubmitResetsErrors() public method

testSubmitThrowsExceptionIfAlreadySubmitted() public method

testSubmitted() public method

public testSubmitted ( )

testSubmittingWrongDataIsIgnored() public method

testSynchronizedAfterSubmission() public method

testSynchronizedByDefault() public method

testValidIfSubmitted() public method

testValidIfSubmittedAndDisabled() public method

testViewDataMayBeArrayAccessIfDataClassIsNull() public method

testViewDataMayBeObjectIfDataClassIsNull() public method

testViewDataMustBeObjectIfDataClassIsSet() public method