PHP Класс Neos\Flow\Tests\Unit\Security\Cryptography\HashServiceTest

Наследование: extends Neos\Flow\Tests\UnitTestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cache Neos\Cache\Frontend\StringFrontend
$hashService Neos\Flow\Security\Cryptography\HashService
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockSettings array

Открытые методы

Метод Описание
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

Описание методов

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Set up test dependencies
public setUp ( ) : void
Результат void

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

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

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

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

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

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

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

test

Описание свойств

$cache защищенное свойство

protected StringFrontend,Neos\Cache\Frontend $cache
Результат Neos\Cache\Frontend\StringFrontend

$hashService защищенное свойство

protected HashService,Neos\Flow\Security\Cryptography $hashService
Результат Neos\Flow\Security\Cryptography\HashService

$mockObjectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockSettings защищенное свойство

protected array $mockSettings
Результат array