Neos\Flow\Tests\FunctionalTestCase::authenticateAccount PHP Method

authenticateAccount() protected method

Prepares the environment for and conducts an account authentication
protected authenticateAccount ( Account $account ) : void
$account Neos\Flow\Security\Account
return void
    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();
    }