Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / user / src / Tests / UserPasswordResetTest.php
index 528d38bc96eb4947fdbfbaec8e6b1f1d9547645b..88fe72c698c690b342b112ca6511d47242ba2570 100644 (file)
@@ -130,7 +130,7 @@ class UserPasswordResetTest extends PageCacheTagsTestBase {
 
     // Verify that the password reset session has been destroyed.
     $this->drupalPostForm(NULL, $edit, t('Save'));
-    $this->assertText(t('Your current password is missing or incorrect; it\'s required to change the Password.'), 'Password needed to make profile changes.');
+    $this->assertText(t("Your current password is missing or incorrect; it's required to change the Password."), 'Password needed to make profile changes.');
 
     // Log out, and try to log in again using the same one-time link.
     $this->drupalLogout();
@@ -144,7 +144,7 @@ class UserPasswordResetTest extends PageCacheTagsTestBase {
     $before = count($this->drupalGetMails(['id' => 'user_password_reset']));
     $edit = ['name' => $this->account->getEmail()];
     $this->drupalPostForm(NULL, $edit, t('Submit'));
-    $this->assertTrue( count($this->drupalGetMails(['id' => 'user_password_reset'])) === $before + 1, 'Email sent when requesting password reset using email address.');
+    $this->assertTrue(count($this->drupalGetMails(['id' => 'user_password_reset'])) === $before + 1, 'Email sent when requesting password reset using email address.');
 
     // Visit the user edit page without pass-reset-token and make sure it does
     // not cause an error.