You are here

protected function CourierManagerTest::setUp in Courier 2.x

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

Overrides KernelTestBase::setUp

File

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

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->courierManager = $this->container
    ->get('courier.manager');
}