public function MessageTest::setUp in Message 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ MessageTest.php, line 45
Class
- MessageTest
- Kernel tests for the Message entity.
Namespace
Drupal\Tests\message\KernelCode
public function setUp() {
parent::setUp();
$this
->installConfig([
'filter',
]);
$this
->installEntitySchema('message');
$this
->installEntitySchema('user');
$this
->installSchema('system', [
'sequences',
]);
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this->messageTemplate = $this
->createMessageTemplate(mb_strtolower($this
->randomMachineName()), $this
->randomString(), $this
->randomString(), []);
}