PHP Class Symfony\Component\Form\Tests\Extension\Csrf\Type\FormTypeCsrfExtensionTest

Inheritance: extends Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase
Show file Open project: symfony/symfony

Protected Properties

Property Type Description
$tokenManager PHPUnit_Framework_MockObject_MockObject
$translator PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
provideBoolean ( )
testCsrfProtectionByDefaultIfRootAndCompound ( )
testCsrfProtectionCanBeDisabled ( )
testDontValidateTokenIfCompoundButNoRoot ( )
testDontValidateTokenIfRootButNotCompound ( )
testFailIfRootAndCompoundAndTokenMissing ( )
testGenerateCsrfToken ( )
testGenerateCsrfTokenUsesFormNameAsIntentionByDefault ( )
testGenerateCsrfTokenUsesTypeClassAsIntentionIfEmptyFormName ( )
testNoCsrfProtectionByDefaultIfCompoundButNotRoot ( )
testNoCsrfProtectionByDefaultIfRootButNotCompound ( )
testNoCsrfProtectionOnPrototype ( )
testValidateTokenOnSubmitIfRootAndCompound ( $valid )
testValidateTokenOnSubmitIfRootAndCompoundUsesFormNameAsIntentionByDefault ( $valid )
testValidateTokenOnSubmitIfRootAndCompoundUsesTypeClassAsIntentionIfEmptyFormName ( $valid )
testsTranslateCustomErrorMessage ( )

Protected Methods

Method Description
getExtensions ( )
setUp ( )
tearDown ( )

Method Details

getExtensions() protected method

protected getExtensions ( )

provideBoolean() public method

public provideBoolean ( )

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testCsrfProtectionByDefaultIfRootAndCompound() public method

testCsrfProtectionCanBeDisabled() public method

testDontValidateTokenIfCompoundButNoRoot() public method

testDontValidateTokenIfRootButNotCompound() public method

testFailIfRootAndCompoundAndTokenMissing() public method

testGenerateCsrfToken() public method

testGenerateCsrfTokenUsesFormNameAsIntentionByDefault() public method

testGenerateCsrfTokenUsesTypeClassAsIntentionIfEmptyFormName() public method

testNoCsrfProtectionByDefaultIfCompoundButNotRoot() public method

testNoCsrfProtectionByDefaultIfRootButNotCompound() public method

testNoCsrfProtectionOnPrototype() public method

testValidateTokenOnSubmitIfRootAndCompound() public method

testValidateTokenOnSubmitIfRootAndCompoundUsesFormNameAsIntentionByDefault() public method

testValidateTokenOnSubmitIfRootAndCompoundUsesTypeClassAsIntentionIfEmptyFormName() public method

testsTranslateCustomErrorMessage() public method

Property Details

$tokenManager protected property

protected PHPUnit_Framework_MockObject_MockObject $tokenManager
return PHPUnit_Framework_MockObject_MockObject

$translator protected property

protected PHPUnit_Framework_MockObject_MockObject $translator
return PHPUnit_Framework_MockObject_MockObject