You are here

public function MessageNotifyTest::setUp in Message Notify 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MessageNotifyTest.php, line 52

Class

MessageNotifyTest
Test the Message notifier plugins handling.

Namespace

Drupal\Tests\message_notify\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('message');
  $this
    ->installConfig([
    'message',
    'message_notify',
    'message_notify_test',
    'filter_test',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this->messageTemplate = MessageTemplate::load('message_notify_test');
  $this->messageNotifier = $this->container
    ->get('message_notify.sender');
}