diff --git a/core/modules/user/src/Tests/UserPasswordResetTest.php b/core/modules/user/src/Tests/UserPasswordResetTest.php index 498cbb5..801a719 100644 --- a/core/modules/user/src/Tests/UserPasswordResetTest.php +++ b/core/modules/user/src/Tests/UserPasswordResetTest.php @@ -89,7 +89,7 @@ function testUserPasswordReset() { // Verify that the user was sent an email. $this->assertMail('to', $this->account->getEmail(), 'Password email sent to user.'); // Email subject is not sanitized - same as in user_mail. - $subject = t('Replacement login information for !username at !site', array('!username' => $this->account->getUsername(), '!site' => $this->config('system.site')->get('name'))); + $subject = 'Replacement login information for ' . $this->account->getUsername() . ' at ' . $this->config('system.site')->get('name'); $this->assertMail('subject', $subject, 'Password reset email subject is correct.'); $resetURL = $this->getResetURL(); @@ -108,7 +108,7 @@ function testUserPasswordReset() { // Check successful login. $this->drupalPostForm(NULL, NULL, t('Log in')); $this->assertLink(t('Log out')); - $this->assertTitle(t('!name | @site', array('!name' => $this->account->getUsername(), '@site' => $this->config('system.site')->get('name'))), 'Logged in using password reset link.'); + $this->assertTitle($this->account->getUsername() . ' | ' . $this->config('system.site')->get('name'), 'Logged in using password reset link.'); // Make sure the ajax request from uploading a user picture does not // invalidate the reset token.