You are here

protected function SiteAlertKernelTestBase::setUp in Site Alert 8

Overrides KernelTestBase::setUp

3 calls to SiteAlertKernelTestBase::setUp()
CliCommandsTest::setUp in tests/src/Kernel/CliCommandsTest.php
GetAlertsTest::setUp in tests/src/Kernel/GetAlertsTest.php
SiteAlertStorageTest::setUp in tests/src/Kernel/SiteAlertStorageTest.php
3 methods override SiteAlertKernelTestBase::setUp()
CliCommandsTest::setUp in tests/src/Kernel/CliCommandsTest.php
GetAlertsTest::setUp in tests/src/Kernel/GetAlertsTest.php
SiteAlertStorageTest::setUp in tests/src/Kernel/SiteAlertStorageTest.php

File

tests/src/Kernel/SiteAlertKernelTestBase.php, line 43

Class

SiteAlertKernelTestBase
Base class for kernel tests for the Site Alerts module.

Namespace

Drupal\Tests\site_alert\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('site_alert');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
}