You are here

protected function MessageDigestTest::getMessageText in Message Digest 8

Returns some message text, including HTML.

Return value

array An array of message text.

1 call to MessageDigestTest::getMessageText()
MessageDigestTest::testManagerProcessing in tests/src/Kernel/MessageDigestTest.php
Tests the message digest manager processing.

File

tests/src/Kernel/MessageDigestTest.php, line 239

Class

MessageDigestTest
Kernel tests for Message Digest.

Namespace

Drupal\Tests\message_digest\Kernel

Code

protected function getMessageText() {
  $text = [];

  // Subject.
  $text[] = [
    'value' => 'Test subject',
    'format' => 'filtered_html',
  ];

  // Body.
  $text[] = [
    'value' => '<div class="foo-bar">Some sweet <a href="[site:url]">message</a>.',
    'format' => 'full_html',
  ];
  return $text;
}