You are here

public function EmailTest::testSendNoMessage in Message Notify 8

Test sending without a message.

@covers ::send

File

tests/src/Unit/Plugin/Notifier/EmailTest.php, line 122

Class

EmailTest
Unit tests for the Email notifier.

Namespace

Drupal\Tests\message_notify\Unit\Plugin\Notifier

Code

public function testSendNoMessage() {
  $this
    ->expectException(\AssertionError::class);
  $this
    ->expectExceptionMessage('No message is set for this notifier.');
  $notifier = $this
    ->getNotifier();
  $notifier
    ->send();
}