Neos\Flow\Tests\Unit\Security\Authentication\Token\UsernamePasswordHttpBasicTest::updateCredentialsSetsTheCorrectAuthenticationStatusIfNoCredentialsArrived PHP Метод

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

    public function updateCredentialsSetsTheCorrectAuthenticationStatusIfNoCredentialsArrived()
    {
        $httpRequest = Request::create(new Uri('http://foo.com'));
        $mockActionRequest = $this->getMockBuilder(ActionRequest::class)->disableOriginalConstructor()->getMock();
        $mockActionRequest->expects($this->atLeastOnce())->method('getHttpRequest')->will($this->returnValue($httpRequest));
        $this->token->updateCredentials($mockActionRequest);
        $this->assertSame(TokenInterface::NO_CREDENTIALS_GIVEN, $this->token->getAuthenticationStatus());
    }