diff --git a/core/modules/user/src/Tests/UserLoginTest.php b/core/modules/user/src/Tests/UserLoginTest.php index c95539e..8628780 100644 --- a/core/modules/user/src/Tests/UserLoginTest.php +++ b/core/modules/user/src/Tests/UserLoginTest.php @@ -151,7 +151,6 @@ function testPasswordRehashOnLogin() { $this->drupalLogin($account); // Load the stored user, which should have a different password hash now. $account = user_load($account->id(), TRUE); - //$password_hasher = $this->container->get('password'); $this->assertTrue($this->passwordHasher->check($password, $account)); } @@ -167,10 +166,11 @@ public function testDrupal6MigratedPasswordRehashing() { $migrated_pass = 'U' . $this->passwordHasher->hash($md5_pass); $this->storeHashedPassword($account, $migrated_pass); + // User first login after migration. $this->drupalLogin($account); $this->drupalLogout(); - // After logging is the user password has been rehashed and is valid. + // After logging in the user password has been rehashed and is valid. $this->assertTrue($this->passwordHasher->check($plain, $account)); } @@ -186,10 +186,12 @@ public function testDrupal7MigratedPasswordRehashing() { $salt = substr($d7_pass, 0, 12); $migrated_pass = 'D7' . $salt . $this->passwordHasher->hash($d7_pass); $this->storeHashedPassword($account, $migrated_pass); + + // User first login after migration. $this->drupalLogin($account); $this->drupalLogout(); - // After logging is the user password has been rehashed and is valid. + // After logging in the user password has been rehashed and is valid. $this->assertTrue($this->passwordHasher->check($plain, $account)); }