function 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.