You are here

public function LegacyMessengerTest::addMessageDataProvider in Service Container 7

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

Data Provider for addMessage().

File

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

Class

LegacyMessengerTest
@coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger

Namespace

Drupal\Tests\service_container\Messenger

Code

public function addMessageDataProvider() {
  return array(
    array(
      'status',
      'Hello Status!',
      FALSE,
    ),
    array(
      'status',
      'Hello Status!',
      TRUE,
    ),
    array(
      'warning',
      'Hello World!',
      FALSE,
    ),
    array(
      'warning',
      'Hello World!',
      TRUE,
    ),
    array(
      'error',
      'Hello Error!',
      FALSE,
    ),
    array(
      'error',
      'Hello Error!',
      TRUE,
    ),
  );
}