annotate core/modules/system/src/Tests/JsMessageTestCases.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@18 1 <?php
Chris@18 2
Chris@18 3 namespace Drupal\system\Tests;
Chris@18 4
Chris@18 5 /**
Chris@18 6 * Test cases for JS Messages tests.
Chris@18 7 */
Chris@18 8 class JsMessageTestCases {
Chris@18 9
Chris@18 10 /**
Chris@18 11 * Gets the test types.
Chris@18 12 *
Chris@18 13 * @return string[]
Chris@18 14 * The test types.
Chris@18 15 */
Chris@18 16 public static function getTypes() {
Chris@18 17 return ['status', 'error', 'warning'];
Chris@18 18 }
Chris@18 19
Chris@18 20 /**
Chris@18 21 * Gets the test messages selectors.
Chris@18 22 *
Chris@18 23 * @return string[]
Chris@18 24 * The test test messages selectors.
Chris@18 25 *
Chris@18 26 * @see core/modules/system/tests/themes/test_messages/templates/status-messages.html.twig
Chris@18 27 */
Chris@18 28 public static function getMessagesSelectors() {
Chris@18 29 return ['', '[data-drupal-messages-other]'];
Chris@18 30 }
Chris@18 31
Chris@18 32 }