// Reset the password by username via the password reset page.
$this->drupalGet('user/password'); $edit = ['name' => $this->account->getAccountName()]; $this->submitForm($edit, 'Submit'); $this->assertValidPasswordReset($edit['name']);
$resetURL = $this->getResetURL(); $this->drupalGet($resetURL); // Ensure that the current URL does not contain the hash and timestamp.
$this->assertSession()->addressEquals(Url::fromRoute('user.reset.form', ['uid' => $this->account->id()]));