PHP Class Neos\Flow\Tests\Unit\Security\Cryptography\HashServiceTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$cache Neos\Cache\Frontend\StringFrontend
$hashService Neos\Flow\Security\Cryptography\HashService
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockSettings array

Méthodes publiques

Méthode Description
appendHmacAppendsHmacToGivenString ( )
appendHmacThrowsExceptionIfNoStringGiven ( )
generateHmacReturnsDifferentHashStringsForDifferentInputStrings ( )
generateHmacReturnsHashStringIfStringIsGiven ( )
generateHmacReturnsHashStringWhichContainsSomeSalt ( )
generateHmacThrowsExceptionIfNoStringGiven ( )
generatedHashCanBeValidatedAgain ( )
generatedHashReturnsAHashOf40Characters ( )
generatedHashWillNotBeValidatedIfHashHasBeenChanged ( )
hashPasswordThrowsExceptionIfNoDefaultHashingStrategyIsConfigured ( )
hashPasswordThrowsExceptionIfTheGivenHashingStrategyIsNotConfigured ( )
hashPasswordWillIncludeStrategyIdentifierInHashedPassword ( )
hashPasswordWithoutStrategyIdentifierUsesConfiguredDefaultStrategy ( )
setUp ( ) : void Set up test dependencies
validateAndStripHmacReturnsTheStringWithoutHmac ( )
validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ( )
validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ( )
validateAndStripHmacThrowsExceptionIfNoStringGiven ( )
validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ( )
validatePasswordWillUseStrategyIdentifierFromHashedPassword ( )
validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy ( ) test

Method Details

appendHmacAppendsHmacToGivenString() public méthode

appendHmacThrowsExceptionIfNoStringGiven() public méthode

generateHmacReturnsDifferentHashStringsForDifferentInputStrings() public méthode

generateHmacReturnsHashStringIfStringIsGiven() public méthode

generateHmacReturnsHashStringWhichContainsSomeSalt() public méthode

generateHmacThrowsExceptionIfNoStringGiven() public méthode

generatedHashCanBeValidatedAgain() public méthode

generatedHashReturnsAHashOf40Characters() public méthode

generatedHashWillNotBeValidatedIfHashHasBeenChanged() public méthode

hashPasswordThrowsExceptionIfNoDefaultHashingStrategyIsConfigured() public méthode

hashPasswordThrowsExceptionIfTheGivenHashingStrategyIsNotConfigured() public méthode

hashPasswordWillIncludeStrategyIdentifierInHashedPassword() public méthode

hashPasswordWithoutStrategyIdentifierUsesConfiguredDefaultStrategy() public méthode

setUp() public méthode

Set up test dependencies
public setUp ( ) : void
Résultat void

validateAndStripHmacReturnsTheStringWithoutHmac() public méthode

validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended() public méthode

validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort() public méthode

validateAndStripHmacThrowsExceptionIfNoStringGiven() public méthode

validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid() public méthode

validatePasswordWillUseStrategyIdentifierFromHashedPassword() public méthode

validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy() public méthode

test

Property Details

$cache protected_oe property

protected StringFrontend,Neos\Cache\Frontend $cache
Résultat Neos\Cache\Frontend\StringFrontend

$hashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography $hashService
Résultat Neos\Flow\Security\Cryptography\HashService

$mockObjectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockSettings protected_oe property

protected array $mockSettings
Résultat array