Mercurial > hg > isophonics-drupal-site
diff core/modules/contact/tests/src/Functional/ContactPersonalTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php Thu May 09 15:33:08 2019 +0100 @@ -65,7 +65,7 @@ */ public function testSendPersonalContactMessage() { // Ensure that the web user's email needs escaping. - $mail = $this->webUser->getUsername() . '&escaped@example.com'; + $mail = $this->webUser->getAccountName() . '&escaped@example.com'; $this->webUser->setEmail($mail)->save(); $this->drupalLogin($this->webUser); @@ -98,7 +98,7 @@ $placeholders = [ '@sender_name' => $this->webUser->username, '@sender_email' => $this->webUser->getEmail(), - '@recipient_name' => $this->contactUser->getUsername(), + '@recipient_name' => $this->contactUser->getAccountName(), ]; $this->assertRaw(new FormattableMarkup('@sender_name (@sender_email) sent @recipient_name an email.', $placeholders)); // Ensure an unescaped version of the email does not exist anywhere.