function UserMailDefaultsTest::testMailDefaults
Same name in other branches
- 9 core/modules/user/tests/src/Kernel/UserMailDefaultsTest.php \Drupal\Tests\user\Kernel\UserMailDefaultsTest::testMailDefaults()
- 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 34
Class
- UserMailDefaultsTest
- Tests that user.mail default settings are parsed correctly.
Namespace
Drupal\Tests\user\KernelCode
public function testMailDefaults($key) : void {
$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.