Drupal 8  8.0.2
SimpletestResultsForm Class Reference
Inheritance diagram for SimpletestResultsForm:

Public Member Functions

 __construct (Connection $database)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state, $test_id=NULL)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 
static addResultForm (array &$form, array $results)
 

Protected Member Functions

 getResults ($test_id)
 

Static Protected Member Functions

static buildStatusImageMap ()
 

Protected Attributes

 $statusImageMap
 
 $database
 

Detailed Description

Test results form for $test_id.

Note that the UI strings are not translated because this form is also used from run-tests.sh.

See Also
simpletest_script_open_browser()
run-tests.sh

Constructor & Destructor Documentation

__construct ( Connection  $database)

Constructs a object.

Parameters
\Drupal\Core\Database\Connection$databaseThe database connection service.

References Drupal\database().

Here is the call graph for this function:

Member Function Documentation

static addResultForm ( array &  $form,
array  $results 
)
static

Adds the result form to a $form.

This is a static method so that run-tests.sh can use it to generate a results page completely external to Drupal. This is why the UI strings are not wrapped in t().

Parameters
array$formThe form to attach the results to.
array$test_resultsThe simpletest results.
Returns
array A list of tests the passed and failed. The array has two keys, 'pass' and 'fail'. Each contains a list of test classes.
See Also
simpletest_script_open_browser()
run-tests.sh

References TestDiscovery\getTestInfo(), and Drupal\service().

Here is the call graph for this function:

buildForm ( array  $form,
FormStateInterface  $form_state,
  $test_id = NULL 
)

{}

References Url\fromRoute(), SimpletestResultsForm\getResults(), t(), and Drupal\url().

Here is the call graph for this function:

static buildStatusImageMap ( )
staticprotected

Builds the status image map.

static create ( ContainerInterface  $container)
static

{}

getFormId ( )

{}

getResults (   $test_id)
protected

Get test results for $test_id.

Parameters
int$test_idThe test_id to retrieve results of.
Returns
array Array of results grouped by test_class.

References Drupal\database().

Referenced by SimpletestResultsForm\buildForm().

Here is the call graph for this function:

Here is the caller graph for this function:

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References SimpletestTestForm\create(), and Drupal\getContainer().

Here is the call graph for this function:


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