function DevelMailLogTest::setUp

Same name in other branches
  1. 4.x tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
  2. 5.x tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()

File

tests/src/Kernel/DevelMailLogTest.php, line 33

Class

DevelMailLogTest
Tests sending mails with debug interface.

Namespace

Drupal\Tests\devel\Kernel

Code

protected function setUp() {
    parent::setUp();
    $this->installSchema('system', 'mail');
    $this->installConfig([
        'system',
        'devel',
    ]);
    // Configure system.site mail settings.
    $this->config('system.site')
        ->set('mail', 'devel-test@example.com')
        ->save();
    $this->mailManager = $this->container
        ->get('plugin.manager.mail');
}