public function LegacyMessengerTest::test_addMessage in Service Container 7
Same name and namespace in other branches
- 8 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_addMessage()
- 7.2 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_addMessage()
@covers ::addMessage() @dataProvider addMessageDataProvider
File
- tests/
src/ Messenger/ LegacyMessengerTest.php, line 53 - Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.
Class
- LegacyMessengerTest
- @coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger
Namespace
Drupal\Tests\service_container\MessengerCode
public function test_addMessage($type, $message, $repeat) {
$this->drupal7
->shouldReceive('drupal_set_message')
->once()
->with($message, $type, $repeat);
$this
->assertSame($this->messenger_service, $this->messenger_service
->addMessage($message, $type, $repeat));
}