Drupal 8  8.0.2
FormValidatorTest Class Reference
Inheritance diagram for FormValidatorTest:

Public Member Functions

 testValidationComplete ()
 
 testPreventDuplicateValidation ()
 
 testMustValidate ()
 
 testValidateInvalidFormToken ()
 
 testValidateValidFormToken ()
 
 testHandleErrorsWithLimitedValidation ($sections, $triggering_element, $values, $expected)
 
 providerTestHandleErrorsWithLimitedValidation ()
 
 testExecuteValidateHandlers ()
 
 testRequiredErrorMessage ($element, $expected_message)
 
 providerTestRequiredErrorMessage ()
 
 testElementValidate ()
 
 testPerformRequiredValidation ($element, $expected_message, $call_watchdog)
 
 providerTestPerformRequiredValidation ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $logger
 
 $csrfToken
 
 $formErrorHandler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Form

Member Function Documentation

setUp ( )
protected

{}

References Drupal\csrfToken(), and Drupal\logger().

Here is the call graph for this function:

testElementValidate ( )

::doValidateForm

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testExecuteValidateHandlers ( )

::executeValidateHandlers

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testHandleErrorsWithLimitedValidation (   $sections,
  $triggering_element,
  $values,
  $expected 
)

::handleErrorsWithLimitedValidation

providerTestHandleErrorsWithLimitedValidation

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testMustValidate ( )

Tests the 'must_validate' $form_state flag.

::validateForm

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testPerformRequiredValidation (   $element,
  $expected_message,
  $call_watchdog 
)

::performRequiredValidation

providerTestPerformRequiredValidation

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testPreventDuplicateValidation ( )

Tests the 'must_validate' $form_state flag.

::validateForm

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testRequiredErrorMessage (   $element,
  $expected_message 
)

::doValidateForm

providerTestRequiredErrorMessage

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testValidateInvalidFormToken ( )

::validateForm

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testValidateValidFormToken ( )

::validateForm

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:

testValidationComplete ( )

Tests the 'validation_complete' $form_state flag.

::validateForm ::finalizeValidation

References Drupal\csrfToken(), UnitTestCase\getStringTranslationStub(), and Drupal\logger().

Here is the call graph for this function:


The documentation for this class was generated from the following file: