PHP Class Neos\Flow\Tests\Unit\Security\Authentication\Token\UsernamePasswordTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mockActionRequest Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject
$mockHttpRequest Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject
$token Neos\Flow\Security\Authentication\Token\UsernamePassword

Public Methods

Method Description
credentialsAreSetCorrectlyFromPostArguments ( )
setUp ( ) Set up this test case
tokenCanBeCastToString ( )
updateCredentialsIgnoresAnythingOtherThanPostRequests ( )
updateCredentialsSetsTheCorrectAuthenticationStatusIfNewCredentialsArrived ( )

Method Details

credentialsAreSetCorrectlyFromPostArguments() public method

setUp() public method

Set up this test case
public setUp ( )

tokenCanBeCastToString() public method

updateCredentialsIgnoresAnythingOtherThanPostRequests() public method

updateCredentialsSetsTheCorrectAuthenticationStatusIfNewCredentialsArrived() public method

Property Details

$mockActionRequest protected property

protected ActionRequest,Neos\Flow\Mvc|PHPUnit_Framework_MockObject_MockObject $mockActionRequest
return Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject

$mockHttpRequest protected property

protected Request,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockHttpRequest
return Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject

$token protected property

protected UsernamePassword,Neos\Flow\Security\Authentication\Token $token
return Neos\Flow\Security\Authentication\Token\UsernamePassword