You are here

protected function NotificationsTest::setUp in Content Moderation Notifications 8.3

Overrides KernelTestBase::setUp

1 call to NotificationsTest::setUp()
TokenNotificationsTest::setUp in tests/src/Kernel/TokenNotificationsTest.php
1 method overrides NotificationsTest::setUp()
TokenNotificationsTest::setUp in tests/src/Kernel/TokenNotificationsTest.php

File

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

Class

NotificationsTest
Test sending of notifications for moderation state changes.

Namespace

Drupal\Tests\content_moderation_notifications\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('entity_test_rev');
  $this
    ->installEntitySchema('content_moderation_state');
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig([
    'content_moderation',
    'filter_test',
  ]);

  // Setup site email.
  $this
    ->config('system.site')
    ->set('mail', 'admin@example.com')
    ->save();

  // Attach workflow to entity test.
  $this
    ->enableModeration();
}