diff --git a/core/modules/user/src/Tests/UserEditedOwnAccountTest.php b/core/modules/user/src/Tests/UserEditedOwnAccountTest.php index ed97bf5..05052e1 100644 --- a/core/modules/user/src/Tests/UserEditedOwnAccountTest.php +++ b/core/modules/user/src/Tests/UserEditedOwnAccountTest.php @@ -46,7 +46,7 @@ function testUserEditedOwnAccount() { // Attempt to change username to an email other than my own. $edit['name'] = $this->randomName() . '@example.com'; $this->drupalPostForm('user/' . $account->id() . '/edit', $edit, t('Save')); - $this->assertText(t('If your username is an email address, it must match your email.'), 'Error message found when an email username does not match user email.'); + $this->assertText(t('You have provided an e-mail address as a username, but this does not match your e-mail address.'), 'Error message found when an email username does not match user email.'); $this->assertNoText(t('The changes have been saved.'), 'The user account was not saved.'); // Lookup user by name to make sure we didn't actually change the name. diff --git a/core/modules/user/src/Tests/UserRegistrationTest.php b/core/modules/user/src/Tests/UserRegistrationTest.php index 5c15c8a..5a13ce8 100644 --- a/core/modules/user/src/Tests/UserRegistrationTest.php +++ b/core/modules/user/src/Tests/UserRegistrationTest.php @@ -175,7 +175,7 @@ function testRegistrationEmailAsUsername() { // Attempt to create an account using an email that doesn't match the name. $this->drupalPostForm('user/register', $edit, t('Create new account')); - $this->assertText(t('If your username is an email address, it must match your email.'), 'Email username does not match user email error message found.'); + $this->assertText(t('You have provided an e-mail address as a username, but this does not match your e-mail address.'), 'Email username does not match user email error message found.'); $this->assertNoText(t('Registration successful. You are now logged in.'), 'The user was not created and logged in.'); // Attempt to create new account using matching email address.