You are here

protected static property ContentModerationNotificationTest::$data in Content Moderation Notifications 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Entity/ContentModerationNotificationTest.php \Drupal\Tests\content_moderation_notifications\Unit\Entity\ContentModerationNotificationTest::data

Test data for the fixture.

Type: array

File

tests/src/Unit/Entity/ContentModerationNotificationTest.php, line 34

Class

ContentModerationNotificationTest
Tests for the notification entity.

Namespace

Drupal\Tests\content_moderation_notifications\Unit\Entity

Code

protected static $data = [
  'id' => 'foo',
  'roles' => [
    'authenticated' => 'authenticated',
    'biz' => 'biz',
  ],
  'workflow' => 'foo_bar',
  'transitions' => [
    'foo_to_bar',
    'bar_to_foo',
  ],
  'subject' => 'A test notification',
  'body' => [
    'value' => 'Test message body',
    'format' => 'test_format',
  ],
  'author' => TRUE,
  'emails' => 'foo@example.com',
];