You are here

protected function DevelMailLogTest::setUp in Devel 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
  2. 8 tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
  3. 8.2 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');
}