You are here

protected function SwiftMailerAlterTest::setUp in Swift Mailer 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/SwiftMailerAlterTest.php \Drupal\Tests\swiftmailer\Functional\SwiftMailerAlterTest::setUp()

Overrides SwiftMailerTestBase::setUp

File

tests/src/Functional/SwiftMailerAlterTest.php, line 14

Class

SwiftMailerAlterTest
@group swiftmailer

Namespace

Drupal\Tests\swiftmailer\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->config('mailsystem.settings')
    ->set('modules.swiftmailer_test.none', [
    'formatter' => 'swiftmailer',
    'sender' => 'swiftmailer',
  ])
    ->save();
  $this
    ->config('swiftmailer.transport')
    ->set('transport', 'null')
    ->save();
  $this->logger = new SwiftMailerDrupalStateLogger();
}