You are here

public function LegacyMessengerTest::getMessagesDataProvider in Service Container 7.2

Same name and namespace in other branches
  1. 8 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::getMessagesDataProvider()
  2. 7 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::getMessagesDataProvider()

Data Provider for getMessages() and getMessagesByType().

File

tests/src/Messenger/LegacyMessengerTest.php, line 107
Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.

Class

LegacyMessengerTest
@coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger

Namespace

Drupal\Tests\service_container\Messenger

Code

public function getMessagesDataProvider() {
  return array(
    array(
      'status',
      array(),
    ),
    array(
      'status',
      array(
        'status' => array(
          'Hello Status!',
        ),
      ),
    ),
    array(
      'warning',
      array(
        'warning' => array(
          'Hello World!',
        ),
      ),
    ),
    array(
      'error',
      array(
        'error' => array(
          'Hello Error!',
        ),
      ),
    ),
  );
}