@@ -183,8 +184,13 @@ protected function openBrowser($url, SymfonyStyle $io) {
*
* @return string
* The one time login URL for user 1.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no
* replacement.
* @see https://www.drupal.org/node/3581062
*/
protectedfunctiongetOneTimeLoginUrl(){
@trigger_error(__METHOD__.'() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3581062',E_USER_DEPRECATED);
@trigger_error('Calling '.__METHOD__.'() without the $one_time_authentication argument is deprecated in drupal:11.4.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3581062',E_USER_DEPRECATED);
->addWarning($this->t('Another user (%other_user) is already logged into the site on this computer, but you tried to use a one-time link for user %resetting_user. <a href=":logout">Log out</a> and try using the link again.',
[
@@ -318,7 +314,7 @@ protected function determineErrorRedirect(?UserInterface $user, int $timestamp,
$this->messenger()->addError($this->t('You have tried to use a one-time login link that has expired. Request a new one using the form below.'));
@trigger_error(__METHOD__.' is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\user\OneTimeAuthentication::verifyHmac() instead. See https://www.drupal.org/node/3581062',E_USER_DEPRECATED);
$this->assertSession()->pageTextContains('You have tried to use an account cancellation link that has expired. Request a new one using the form below.');
$account=$user_storage->load($account->id());
$this->assertTrue($account->isActive(),'User account was not canceled.');
$this->assertSession()->pageTextContains('You have tried to use an account cancellation link that has expired. Request a new one using the form below.');
$account=$user_storage->load($account->id());
$this->assertTrue($account->isActive(),'User account was not canceled.');
@@ -200,7 +201,7 @@ public function testUserBlock(): void {
$this->assertSession()->pageTextContains('A confirmation request to cancel your account has been sent to your email address.');