You are here

function template_preprocess_simpletest_result_summary in Drupal 8

Prepares variables for simpletest result summary templates.

Default template: simpletest-result-summary.html.twig.

Parameters

array $variables: An associative array containing:

  • label: An optional label to be rendered before the results.
  • ok: The overall group result pass or fail.
  • pass: The number of passes.
  • fail: The number of fails.
  • exception: The number of exceptions.
  • debug: The number of debug messages.

File

core/modules/simpletest/simpletest.module, line 85
Provides testing functionality.

Code

function template_preprocess_simpletest_result_summary(&$variables) {
  $variables['items'] = _simpletest_build_summary_line($variables);
}