Drupal 8  8.0.2
BatchTestController Class Reference

Public Member Functions

 testRedirect ()
 
 testLargePercentage ()
 
 testNestedDrupalFormSubmit ($value=1)
 
 testNoForm ()
 
 testFinishRedirect ()
 
 testProgrammatic ($value=1)
 
 testThemeBatch ()
 
 testTitleBatch ()
 

Detailed Description

Controller routines for batch tests.

Member Function Documentation

testFinishRedirect ( )

Fires a batch process without a form submission and a finish redirect.

Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:

testLargePercentage ( )

Fires a batch process without a form submission.

Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:

testNestedDrupalFormSubmit (   $value = 1)

Submits a form within a batch programmatically.

Parameters
int$valueSome value passed to a custom batch callback.
Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:

testNoForm ( )

Fires a batch process without a form submission.

Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:

testProgrammatic (   $value = 1)

Submits the 'Chained' form programmatically.

Programmatic form: the page submits the 'Chained' form through ::formBuilder()->submitForm().

Parameters
int$valueSome value passed to a the chained form.
Returns
array Render array containing markup.

References Drupal\formBuilder().

Here is the call graph for this function:

testRedirect ( )

Redirects successfully.

Returns
array Render array containing success message.
testThemeBatch ( )

Runs a batch for testing theme used on the progress page.

Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:

testTitleBatch ( )

Runs a batch for testing the title shown on the progress page.

Returns
|null A redirect response if the batch is progressive. No return value otherwise.

References batch_set().

Here is the call graph for this function:


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