protected function UserNotificationEmailTest::setUp in Private Message 8
Overrides EntityKernelTestBase::setUp
File
- tests/
src/ Kernel/ UserNotificationEmailTest.php, line 49
Class
- UserNotificationEmailTest
- Tests notification emails when a new private message is created.
Namespace
Drupal\Tests\private_message\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('pm_thread_access_time');
$this
->installEntitySchema('pm_thread_delete_time');
$this
->installEntitySchema('private_message');
$this
->installEntitySchema('private_message_thread');
$this
->installEntitySchema('user');
$this
->installSchema('user', [
'users_data',
]);
$this
->installConfig([
'private_message',
]);
$this->threadManager = \Drupal::service('private_message.thread_manager');
$this->userData = \Drupal::service('user.data');
}