protected function SwiftMailerAlterTest::setUp in Swift Mailer 8
Same name and namespace in other branches
- 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\FunctionalCode
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();
}