public function LegacyMessengerTest::test_getMessages in Service Container 8
Same name and namespace in other branches
- 7.2 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_getMessages()
- 7 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_getMessages()
@covers ::getMessages() @dataProvider getMessagesDataProvider
File
- tests/
src/ Messenger/ LegacyMessengerTest.php, line 66 - Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.
Class
- LegacyMessengerTest
- @coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger
Namespace
Drupal\Tests\service_container\MessengerCode
public function test_getMessages($type, $expected) {
$this->drupal7
->shouldReceive('drupal_get_messages')
->once()
->with(NULL, FALSE)
->andReturn($expected);
$this
->assertEquals($expected, $this->messenger_service
->getMessages());
}