Neos\Flow\Tests\Unit\Security\Authentication\Provider\PersistedUsernamePasswordProviderTest::authenticatingAnUsernamePasswordTokenFetchesAccountWithDisabledAuthorization PHP Метод

authenticatingAnUsernamePasswordTokenFetchesAccountWithDisabledAuthorization() публичный Метод

    public function authenticatingAnUsernamePasswordTokenFetchesAccountWithDisabledAuthorization()
    {
        $this->mockToken->expects($this->once())->method('getCredentials')->will($this->returnValue(array('username' => 'admin', 'password' => 'password')));
        $this->mockSecurityContext->expects($this->once())->method('withoutAuthorizationChecks');
        $this->persistedUsernamePasswordProvider->authenticate($this->mockToken);
    }