simpletest-result-summary.html.twig 646 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{#
/**
 * @file
 * Default theme implementation for simpletest result summaries.
 *
 * Available variables:
 * - label: An optional label to be rendered before the results.
 * - items: Pluralized summaries for each result type (number of passes, fails,
 *   exceptions, and debug messages).
 * - pass: The number of passes.
 * - fail: The number of fails.
 * - exception: The number of exceptions.
 * - debug: The number of debug messages.
 *
 * @see template_preprocess_simpletest_result_summary()
 *
 * @ingroup themeable
 */
#}
<div class="simpletest-{{ fail + exception == 0 ? 'pass' : 'fail' }}">
  {{ label }} {{ items|join(', ') }}
</div>