public function UserMailDefaultsTest::testMailDefaults in Drupal 10
Same name and namespace in other branches
- 9 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\KernelCode
public function testMailDefaults($key) {
$body = $this
->config('user.mail')
->get("{$key}.body");
$this
->assertStringContainsString("\n\n", $body);
}