public function LegacyMessengerTest::test_deleteMessages in Service Container 7.2
Same name and namespace in other branches
- 8 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_deleteMessages()
- 7 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_deleteMessages()
@covers ::deleteMessages()
File
- tests/
src/ Messenger/ LegacyMessengerTest.php, line 120 - Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.
Class
- LegacyMessengerTest
- @coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger
Namespace
Drupal\Tests\service_container\MessengerCode
public function test_deleteMessages() {
$this->drupal7
->shouldReceive('drupal_get_messages')
->once()
->with(NULL, TRUE);
$this
->assertSame($this->messenger_service, $this->messenger_service
->deleteMessages());
}