setAccount() public method

Set the account that will be authenticated
public setAccount ( Account $account ) : void
$account Neos\Flow\Security\Account
return void
 /**
  * Prepares the environment for and conducts an account authentication
  *
  * @param \Neos\Flow\Security\Account $account
  * @return void
  * @api
  */
 protected function authenticateAccount(\Neos\Flow\Security\Account $account)
 {
     $this->testingProvider->setAuthenticationStatus(\Neos\Flow\Security\Authentication\TokenInterface::AUTHENTICATION_SUCCESSFUL);
     $this->testingProvider->setAccount($account);
     $this->securityContext->clearContext();
     $requestHandler = self::$bootstrap->getActiveRequestHandler();
     $actionRequest = $this->route($requestHandler->getHttpRequest());
     $this->securityContext->setRequest($actionRequest);
     $this->authenticationManager->authenticate();
 }