function UserRequirementsTest::testBlankUserEmails
Tests that the requirements check does not incorrectly flag blank emails.
File
-
core/
modules/ user/ tests/ src/ Kernel/ UserRequirementsTest.php, line 53
Class
- UserRequirementsTest
- Tests user_requirements().
Namespace
Drupal\Tests\user\KernelCode
public function testBlankUserEmails() : void {
$output = \user_requirements('runtime');
$this->assertArrayNotHasKey('conflicting emails', $output);
$this->createUser([], 'User A', FALSE, [
'mail' => '',
]);
$this->createUser([], 'User B', FALSE, [
'mail' => '',
]);
$output = \user_requirements('runtime');
$this->assertArrayNotHasKey('conflicting emails', $output);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.