TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
HashServiceTest Class Reference
Inheritance diagram for HashServiceTest:
UnitTestCase BaseTestCase

Public Member Functions

 generateHmacReturnsHashStringIfStringIsGiven ()
 
 generateHmacReturnsHashStringWhichContainsSomeSalt ()
 
 generateHmacReturnsDifferentHashStringsForDifferentInputStrings ()
 
 generateHmacThrowsExceptionIfNoStringGiven ()
 
 generatedHmacCanBeValidatedAgain ()
 
 generatedHmacWillNotBeValidatedIfHashHasBeenChanged ()
 
 appendHmacThrowsExceptionIfNoStringGiven ()
 
 appendHmacAppendsHmacToGivenString ()
 
 validateAndStripHmacThrowsExceptionIfNoStringGiven ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ()
 
 validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ()
 
 validateAndStripHmacReturnsTheStringWithoutHmac ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $hashService
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 22 of file HashServiceTest.php.

Member Function Documentation

appendHmacAppendsHmacToGivenString ( )
Test:

Definition at line 106 of file HashServiceTest.php.

appendHmacThrowsExceptionIfNoStringGiven ( )
Test:

Definition at line 96 of file HashServiceTest.php.

generatedHmacCanBeValidatedAgain ( )
Test:

Definition at line 76 of file HashServiceTest.php.

generatedHmacWillNotBeValidatedIfHashHasBeenChanged ( )
Test:

Definition at line 86 of file HashServiceTest.php.

generateHmacReturnsDifferentHashStringsForDifferentInputStrings ( )
Test:

Definition at line 56 of file HashServiceTest.php.

generateHmacReturnsHashStringIfStringIsGiven ( )
Test:

Definition at line 38 of file HashServiceTest.php.

generateHmacReturnsHashStringWhichContainsSomeSalt ( )
Test:

Definition at line 47 of file HashServiceTest.php.

generateHmacThrowsExceptionIfNoStringGiven ( )
Test:

Definition at line 66 of file HashServiceTest.php.

setUp ( )
protected

Definition at line 29 of file HashServiceTest.php.

References $GLOBALS.

validateAndStripHmacReturnsTheStringWithoutHmac ( )
Test:

Definition at line 156 of file HashServiceTest.php.

validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ( )
Test:

Definition at line 136 of file HashServiceTest.php.

validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ( )
Test:

Definition at line 126 of file HashServiceTest.php.

validateAndStripHmacThrowsExceptionIfNoStringGiven ( )
Test:

Definition at line 116 of file HashServiceTest.php.

validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ( )
Test:

Definition at line 146 of file HashServiceTest.php.

Member Data Documentation

$hashService
protected

Definition at line 27 of file HashServiceTest.php.