You are here

protected function CourierManagerTest::setUp in Courier 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/CourierManagerTest.php \Drupal\Tests\courier\Kernel\CourierManagerTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/CourierManagerTest.php, line 29

Class

CourierManagerTest
Tests Courier manager.

Namespace

Drupal\Tests\courier\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'courier',
  ]);
  $this
    ->installEntitySchema('courier_message_queue_item');
  $this
    ->installEntitySchema('courier_template_collection');
  $this
    ->installEntitySchema('courier_email');
  $this
    ->installEntitySchema('courier_test_message');
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('system', [
    'queue',
  ]);
  $this->courierManager = $this->container
    ->get('courier.manager');
}