public function UserRestrictionsLoginTest::testUserRestrictionsCheckMailWhitelist in User restrictions 8
Ensure whitelists override blacklists for email patterns.
File
- tests/
src/ Functional/ UserRestrictionsLoginTest.php, line 60
Class
- UserRestrictionsLoginTest
- Tests login restrictions.
Namespace
Drupal\Tests\user_restrictions\FunctionalCode
public function testUserRestrictionsCheckMailWhitelist() {
$this
->drupalGet('user/register');
$edit = [];
$edit['name'] = $this
->randomMachineName();
$edit['mail'] = 'typhonius@mail.ru';
$this
->drupalPostForm('user/register', $edit, t('Create new account'));
$this
->assertText(t('A welcome message with further instructions has been sent to your email address.'), 'User registered successfully.');
}