function DevelMailLogTest::setUp

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

Overrides KernelTestBase::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->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');
}