Drupal 8  8.0.2
FormSubmitterTest Class Reference
Inheritance diagram for FormSubmitterTest:

Public Member Functions

 testHandleFormSubmissionNotSubmitted ()
 
 testHandleFormSubmissionNoRedirect ()
 
 testHandleFormSubmissionWithResponses ($class, $form_state_key)
 
 providerTestHandleFormSubmissionWithResponses ()
 
 testRedirectWithNull ()
 
 testRedirectWithUrl (Url $redirect_value, $result, $status=303)
 
 providerTestRedirectWithUrl ()
 
 testRedirectWithResponseObject ()
 
 testRedirectWithoutResult ()
 
 testExecuteSubmitHandlers ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 getFormSubmitter ()
 
- 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

 $urlGenerator
 
 $unroutedUrlAssembler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Form

Member Function Documentation

getFormSubmitter ( )
protected
Returns

References Drupal\urlGenerator().

Referenced by FormSubmitterTest\testExecuteSubmitHandlers(), FormSubmitterTest\testHandleFormSubmissionNoRedirect(), FormSubmitterTest\testHandleFormSubmissionNotSubmitted(), FormSubmitterTest\testHandleFormSubmissionWithResponses(), FormSubmitterTest\testRedirectWithNull(), FormSubmitterTest\testRedirectWithoutResult(), FormSubmitterTest\testRedirectWithResponseObject(), and FormSubmitterTest\testRedirectWithUrl().

Here is the call graph for this function:

Here is the caller graph for this function:

providerTestRedirectWithUrl ( )

Provides test data for testing the redirectForm() method with a route name.

Returns
array Returns some test data.
setUp ( )
protected

{}

References Drupal\urlGenerator().

Here is the call graph for this function:

testExecuteSubmitHandlers ( )

::executeSubmitHandlers

References FormSubmitterTest\getFormSubmitter().

Here is the call graph for this function:

testHandleFormSubmissionNoRedirect ( )

::doSubmitForm

References FormSubmitterTest\getFormSubmitter().

Here is the call graph for this function:

testHandleFormSubmissionNotSubmitted ( )

::doSubmitForm

References FormSubmitterTest\getFormSubmitter().

Here is the call graph for this function:

testHandleFormSubmissionWithResponses (   $class,
  $form_state_key 
)

::doSubmitForm

providerTestHandleFormSubmissionWithResponses

References FormSubmitterTest\getFormSubmitter().

Here is the call graph for this function:

testRedirectWithNull ( )

Tests the redirectForm() method when the redirect is NULL.

::redirectForm

References FormSubmitterTest\getFormSubmitter(), and Drupal\urlGenerator().

Here is the call graph for this function:

testRedirectWithoutResult ( )

Tests the redirectForm() method when no redirect is expected.

::redirectForm

References FormSubmitterTest\getFormSubmitter(), Drupal\setContainer(), and Drupal\urlGenerator().

Here is the call graph for this function:

testRedirectWithResponseObject ( )

Tests the redirectForm() method with a response object.

::redirectForm

References FormSubmitterTest\getFormSubmitter().

Here is the call graph for this function:

testRedirectWithUrl ( Url  $redirect_value,
  $result,
  $status = 303 
)

Tests redirectForm() when a redirect is a Url object.

::redirectForm

providerTestRedirectWithUrl

References FormSubmitterTest\getFormSubmitter(), Drupal\setContainer(), and Drupal\urlGenerator().

Here is the call graph for this function:


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