diff --git a/core/modules/user/src/Tests/UserChangeEmailTest.php b/core/modules/user/src/Tests/UserChangeEmailTest.php index 8a5a951..b54fd31 100644 --- a/core/modules/user/src/Tests/UserChangeEmailTest.php +++ b/core/modules/user/src/Tests/UserChangeEmailTest.php @@ -84,7 +84,7 @@ public function testEmailChange() { */ public function testEmailChangeForBlockedUser() { $timestamp = REQUEST_TIME - 1; - $account_cloned = $this->account; + $account_cloned = clone $this->account; $account_cloned->block(); $account_cloned->save(); $this->drupalGet(ChangeEmailController::getUrl($account_cloned, [], $timestamp)->getInternalPath()); @@ -154,7 +154,7 @@ protected function gerUrlEmail($mail_id) { } /** - * Generates a random email adress. + * Generates a random email address. * * @return string * A random email address.