diff --git a/core/lib/Drupal/Core/Session/AccountProxyInterface.php b/core/lib/Drupal/Core/Session/AccountProxyInterface.php index b06b347..3c3f072 100644 --- a/core/lib/Drupal/Core/Session/AccountProxyInterface.php +++ b/core/lib/Drupal/Core/Session/AccountProxyInterface.php @@ -34,7 +34,7 @@ public function setAccount(AccountInterface $account); public function getAccount(); /** - * Set the current wrapped account to impersonate another account. + * Sets the currently wrapped account to impersonate another account. * * Always remember to call AccountProxyInterface::revertAccount() after this * call! @@ -45,7 +45,7 @@ public function getAccount(); public function impersonateAccount(AccountInterface $account); /** - * Revert from impersonating another account. + * Reverts from impersonating another account. * * @return \Drupal\Core\Session\AccountInterface * $this. diff --git a/core/modules/system/lib/Drupal/system/Tests/Session/UserImpersonatingUserTest.php b/core/modules/system/lib/Drupal/system/Tests/Session/UserImpersonatingUserTest.php index 2e08b23..7b715fa 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Session/UserImpersonatingUserTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Session/UserImpersonatingUserTest.php @@ -24,10 +24,6 @@ public static function getInfo() { ); } - function setUp() { - parent::setUp(); - } - function testUserImpersonateUser() { $session_manager = $this->container->get('session_manager'); $user = $this->container->get('current_user'); @@ -39,7 +35,8 @@ function testUserImpersonateUser() { // user 1. If logged in, switch to the anonymous user instead. if ($user->isAnonymous()) { $user->impersonateAccount(new UserSession(array('uid' => 1))); - } else { + } + else { $user->impersonateAccount(new AnonymousUserSession()); }