You are here

protected function NotificationsTest::assertBccRecipients in Content Moderation Notifications 8.3

Helper method to assert the Bcc recipients.

Parameters

string $recipients: The expected recipients.

2 calls to NotificationsTest::assertBccRecipients()
NotificationsTest::testEmailDelivery in tests/src/Kernel/NotificationsTest.php
Test sending of emails.
TokenNotificationsTest::testTokens in tests/src/Kernel/TokenNotificationsTest.php
Test token functionality.

File

tests/src/Kernel/NotificationsTest.php, line 143

Class

NotificationsTest
Test sending of notifications for moderation state changes.

Namespace

Drupal\Tests\content_moderation_notifications\Kernel

Code

protected function assertBccRecipients($recipients) {
  $mails = $this
    ->getMails();
  $mail = end($mails);
  $this
    ->assertNotEmpty($mail['headers']['Bcc']);
  $this
    ->assertEquals($recipients, $mail['headers']['Bcc']);
}