You are here

protected function AnalyzerTestBase::setUp in Mailhandler 8

Overrides KernelTestBase::setUp

5 calls to AnalyzerTestBase::setUp()
BodyAnalyzerKernelTest::setUp in tests/src/Kernel/BodyAnalyzerKernelTest.php
EntityTypeAnalyzerKernelTest::setUp in tests/src/Kernel/EntityTypeAnalyzerKernelTest.php
FooterAnalyzerKernelTest::setUp in tests/src/Kernel/FooterAnalyzerKernelTest.php
PGPAnalyzerKernelTest::setUp in tests/src/Kernel/PGPAnalyzerKernelTest.php
SenderAnalyzerKernelTest::setUp in tests/src/Kernel/SenderAnalyzerKernelTest.php
5 methods override AnalyzerTestBase::setUp()
BodyAnalyzerKernelTest::setUp in tests/src/Kernel/BodyAnalyzerKernelTest.php
EntityTypeAnalyzerKernelTest::setUp in tests/src/Kernel/EntityTypeAnalyzerKernelTest.php
FooterAnalyzerKernelTest::setUp in tests/src/Kernel/FooterAnalyzerKernelTest.php
PGPAnalyzerKernelTest::setUp in tests/src/Kernel/PGPAnalyzerKernelTest.php
SenderAnalyzerKernelTest::setUp in tests/src/Kernel/SenderAnalyzerKernelTest.php

File

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

Class

AnalyzerTestBase
Provides the base for analyzer tests.

Namespace

Drupal\Tests\mailhandler\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig([
    'inmail',
    'mailhandler',
    'user',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this->parser = \Drupal::service('inmail.mime_parser');
  $this->analyzerManager = \Drupal::service('plugin.manager.inmail.analyzer');
}