public function MessageTokenTest::setUp in Message 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ MessageTokenTest.php, line 41
Class
- MessageTokenTest
- Test the Message and tokens integration.
Namespace
Drupal\Tests\message\KernelCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('message');
$this
->installEntitySchema('user');
$this
->installConfig([
'filter',
]);
$this->user = User::create([
'uid' => mt_rand(5, 10),
'name' => $this
->randomString(),
]);
$this->user
->save();
$this->entityTypeManager = $this->container
->get('entity_type.manager');
}