function DevelMailLogTest::testDevelMailDefaultSettings

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

Tests devel_mail_log default settings.

File

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

Class

DevelMailLogTest
Tests sending mails with debug interface.

Namespace

Drupal\Tests\devel\Kernel

Code

public function testDevelMailDefaultSettings() : void {
    $config = \Drupal::config('devel.settings');
    $this->assertEquals('temporary://devel-mails', $config->get('debug_mail_directory'));
    $this->assertEquals('%to-%subject-%datetime.mail.txt', $config->get('debug_mail_file_format'));
}