You are here

public function SwiftMailerTest::setUp in Swift Mailer 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Plugin/Mail/SwiftMailerTest.php, line 33

Class

SwiftMailerTest
@coversDefaultClass \Drupal\swiftmailer\Plugin\Mail\SwiftMailer @group swiftmailer

Namespace

Drupal\Tests\swiftmailer\Kernel\Plugin\Mail

Code

public function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'swiftmailer',
    'filter',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('user', 'users_data');
  $this->plugin = $this->container
    ->get('plugin.manager.mail')
    ->createInstance('swiftmailer');
}