public function LegacyMessengerTest::getMessagesDataProvider in Service Container 7
Same name and namespace in other branches
- 8 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::getMessagesDataProvider()
- 7.2 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\MessengerCode
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!',
),
),
),
);
}