public function MessageSubscribeTestBase::setUp in Message Subscribe 8
Overrides KernelTestBase::setUp
4 calls to MessageSubscribeTestBase::setUp()
- ContextTest::setUp in tests/
src/ Kernel/ ContextTest.php - MessageSubscribeEmailTestBase::setUp in message_subscribe_email/
tests/ src/ Kernel/ MessageSubscribeEmailTestBase.php - QueueTest::setUp in tests/
src/ Kernel/ QueueTest.php - SubscribersTest::setUp in tests/
src/ Kernel/ SubscribersTest.php
4 methods override MessageSubscribeTestBase::setUp()
- ContextTest::setUp in tests/
src/ Kernel/ ContextTest.php - MessageSubscribeEmailTestBase::setUp in message_subscribe_email/
tests/ src/ Kernel/ MessageSubscribeEmailTestBase.php - QueueTest::setUp in tests/
src/ Kernel/ QueueTest.php - SubscribersTest::setUp in tests/
src/ Kernel/ SubscribersTest.php
File
- tests/
src/ Kernel/ MessageSubscribeTestBase.php, line 54
Class
- MessageSubscribeTestBase
- Base class for messsage subscribe kernel tests.
Namespace
Drupal\Tests\message_subscribe\KernelCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('flag', [
'flag_counts',
]);
$this
->installEntitySchema('flagging');
$this
->installEntitySchema('message');
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installConfig([
'field',
'filter',
'node',
'message_subscribe',
]);
// Add a message template.
$this->template = $this
->createMessageTemplate(mb_strtolower($this
->randomMachineName()), $this
->randomString(), $this
->randomString(), [
$this
->randomString(),
]);
}