You are here

protected function MailUiTest::setUp in Maillog / Mail Developer 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MailUiTest.php, line 32

Class

MailUiTest
Tests the maillog plugin user interface.

Namespace

Drupal\Tests\maillog\Functional

Code

protected function setUp() {
  parent::setUp();

  // Use the maillog mail plugin.
  $this
    ->config('system.mail')
    ->set('interface.default', 'maillog')
    ->save();

  // The system.site.mail setting goes into the From header of outgoing mails.
  $this
    ->config('system.site')
    ->set('mail', 'simpletest@example.com')
    ->save();

  // Disable e-mail sending.
  $this
    ->config('maillog.settings')
    ->set('send', FALSE)
    ->save();
}