public function DigestTestBase::setUp in Message Digest 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ DigestTestBase.php, line 57
Class
- DigestTestBase
- Base class for kernel tests for the message digest module.
Namespace
Drupal\Tests\message_digest\KernelCode
public function setUp() {
parent::setUp();
$this->notifierManager = $this->container
->get('plugin.message_notify.notifier.manager');
$this->notifierSender = $this->container
->get('message_notify.sender');
$this->digestManager = $this->container
->get('message_digest.manager');
$this
->installEntitySchema('message');
$this
->installEntitySchema('user');
$this
->installSchema('message_digest', [
'message_digest',
]);
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('user', [
'users_data',
]);
$this
->installConfig([
'filter',
'filter_test',
'message_digest',
'message_notify',
'system',
]);
// Create a dummy user to avoid UID 1 super privileges.
$this
->createUser();
}