You are here

protected function SwiftMailerAlterTest::setUp in Swift Mailer 8

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

Overrides BrowserTestBase::setUp

File

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

Class

SwiftMailerAlterTest
@group swiftmailer

Namespace

Drupal\Tests\swiftmailer\Functional

Code

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