PHP Class Symfony\Component\Form\Tests\Extension\Core\EventListener\ResizeFormListenerTest

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

Public Methods

Method Description
testOnSubmitDealsWithArrayBackedIteratorAggregate ( )
testOnSubmitDealsWithObjectBackedIteratorAggregate ( )
testOnSubmitNormDataDealsWithNullData ( )
testOnSubmitNormDataDoesNothingIfNotAllowDelete ( )
testOnSubmitNormDataRemovesEntriesMissingInTheFormIfAllowDelete ( )
testOnSubmitNormDataRequiresArrayOrTraversable ( )
testPreSetDataDealsWithNullData ( )
testPreSetDataRequiresArrayOrTraversable ( )
testPreSetDataResizesForm ( )
testPreSubmitDealsWithEmptyData ( ) fixes https://github.com/symfony/symfony/pull/40
testPreSubmitDealsWithNoArrayOrTraversable ( )
testPreSubmitDealsWithNullData ( )
testPreSubmitDoesNothingIfNotAllowAddNorAllowDelete ( )
testPreSubmitRemovesZeroKeys ( ) fix for https://github.com/symfony/symfony/pull/493
testPreSubmitResizesDownIfAllowDelete ( )
testPreSubmitResizesUpIfAllowAdd ( )

Protected Methods

Method Description
getBuilder ( $name = 'name' )
getForm ( $name = 'name' )
getMockForm ( )
setUp ( )
tearDown ( )

Private Methods

Method Description
getDataMapper ( ) : PHPUnit_Framework_MockObject_MockObject

Method Details

getBuilder() protected method

protected getBuilder ( $name = 'name' )

getForm() protected method

protected getForm ( $name = 'name' )

getMockForm() protected method

protected getMockForm ( )

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testOnSubmitDealsWithArrayBackedIteratorAggregate() public method

testOnSubmitDealsWithObjectBackedIteratorAggregate() public method

testOnSubmitNormDataDealsWithNullData() public method

testOnSubmitNormDataDoesNothingIfNotAllowDelete() public method

testOnSubmitNormDataRemovesEntriesMissingInTheFormIfAllowDelete() public method

testOnSubmitNormDataRequiresArrayOrTraversable() public method

testPreSetDataDealsWithNullData() public method

testPreSetDataRequiresArrayOrTraversable() public method

testPreSetDataResizesForm() public method

testPreSubmitDealsWithEmptyData() public method

fixes https://github.com/symfony/symfony/pull/40

testPreSubmitDealsWithNoArrayOrTraversable() public method

testPreSubmitDealsWithNullData() public method

testPreSubmitDoesNothingIfNotAllowAddNorAllowDelete() public method

testPreSubmitRemovesZeroKeys() public method

fix for https://github.com/symfony/symfony/pull/493

testPreSubmitResizesDownIfAllowDelete() public method

testPreSubmitResizesUpIfAllowAdd() public method