You are here

public function DevelMailLogTest::testDevelMailDefaultSettings in Devel 8

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

Class

DevelMailLogTest
Tests sending mails with debug interface.

Namespace

Drupal\Tests\devel\Kernel

Code

public function testDevelMailDefaultSettings() {
  $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'));
}