function MailTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Mail/MailTest.php \Drupal\Tests\system\Kernel\Mail\MailTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Kernel/Mail/MailTest.php \Drupal\Tests\system\Kernel\Mail\MailTest::setUp()
  3. 10 core/modules/system/tests/src/Kernel/Mail/MailTest.php \Drupal\Tests\system\Kernel\Mail\MailTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Mail/MailTest.php, line 43

Class

MailTest
Performs tests on the pluggable mailing framework.

Namespace

Drupal\Tests\system\Kernel\Mail

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('file');
    $this->installConfig([
        'system',
    ]);
    // Set required site configuration.
    $this->config('system.site')
        ->set('mail', 'mailtest@example.com')
        ->set('name', 'Drupal')
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.