simpletest-result-summary.html.twig 646 B

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