This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/core/modules/simpletest/templates/simpletest-result-summary.html.twig

23 lines
646 B
Twig
Raw Normal View History

{#
/**
* @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>