You are here

public function UserMailDefaultsTest::testMailDefaults in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/user/tests/src/Kernel/UserMailDefaultsTest.php \Drupal\Tests\user\Kernel\UserMailDefaultsTest::testMailDefaults()

Tests that each user mail contains blank lines.

@dataProvider userMailsProvider

File

core/modules/user/tests/src/Kernel/UserMailDefaultsTest.php, line 32

Class

UserMailDefaultsTest
Tests that user.mail default settings are parsed correctly.

Namespace

Drupal\Tests\user\Kernel

Code

public function testMailDefaults($key) {
  $body = $this
    ->config('user.mail')
    ->get("{$key}.body");
  $this
    ->assertStringContainsString("\n\n", $body);
}