You are here

public static function JSMessageTestController::getMessagesSelectors in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php \Drupal\js_message_test\Controller\JSMessageTestController::getMessagesSelectors()

Gets the test messages selectors.

Return value

string[] The test test messages selectors.

See also

core/modules/system/tests/themes/test_messages/templates/status-messages.html.twig

2 calls to JSMessageTestController::getMessagesSelectors()
JsMessageTest::testAddRemoveMessages in core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php
Test click on links to show messages and remove messages.
JSMessageTestController::messageLinks in core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php
Displays links to show messages via Javascript.

File

core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php, line 28

Class

JSMessageTestController
Test Controller to show message links.

Namespace

Drupal\js_message_test\Controller

Code

public static function getMessagesSelectors() {
  return [
    '',
    '[data-drupal-messages-other]',
  ];
}