TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest Class Reference
Inheritance diagram for TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 hasCorrectBaseClass ()
 
 nonZeroSaltLength ()
 
 emptyPasswordResultsInNullSaltedPassword ()
 
 nonEmptyPasswordResultsInNonNullSaltedPassword ()
 
 createdSaltedHashOfProperStructure ()
 
 createdSaltedHashOfProperStructureForCustomSaltWithoutSetting ()
 
 createdSaltedHashOfProperStructureForMinimumHashCount ()
 
 authenticationWithValidAlphaCharClassPassword ()
 
 authenticationWithValidNumericCharClassPassword ()
 
 authenticationWithValidAsciiSpecialCharClassPassword ()
 
 authenticationWithValidLatin1SpecialCharClassPassword ()
 
 authenticationWithValidLatin1UmlautCharClassPassword ()
 
 authenticationWithNonValidPassword ()
 
 passwordVariationsResultInDifferentHashes ()
 
 modifiedMinHashCount ()
 
 modifiedMaxHashCount ()
 
 modifiedHashCount ()
 
 updateNecessityForValidSaltedPassword ()
 
 updateNecessityForIncreasedHashcount ()
 
 updateNecessityForDecreasedHashcount ()
 

Protected Member Functions

 setUp ()
 
 skipTestIfBlowfishIsNotAvailable ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\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)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $objectInstance = null
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for BlowfishSalt

Definition at line 20 of file BlowfishSaltTest.php.

Member Function Documentation

◆ authenticationWithNonValidPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithNonValidPassword ( )

◆ authenticationWithValidAlphaCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithValidAlphaCharClassPassword ( )

Tests authentication procedure with alphabet characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 140 of file BlowfishSaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\skipTestIfBlowfishIsNotAvailable().

◆ authenticationWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithValidAsciiSpecialCharClassPassword ( )

Tests authentication procedure with US-ASCII special characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 172 of file BlowfishSaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\skipTestIfBlowfishIsNotAvailable().

◆ authenticationWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithValidLatin1SpecialCharClassPassword ( )

Tests authentication procedure with latin1 special characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 188 of file BlowfishSaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\skipTestIfBlowfishIsNotAvailable().

◆ authenticationWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithValidLatin1UmlautCharClassPassword ( )

Tests authentication procedure with latin1 umlauts.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 208 of file BlowfishSaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\skipTestIfBlowfishIsNotAvailable().

◆ authenticationWithValidNumericCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::authenticationWithValidNumericCharClassPassword ( )

Tests authentication procedure with numeric characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 156 of file BlowfishSaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\skipTestIfBlowfishIsNotAvailable().

◆ createdSaltedHashOfProperStructure()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::createdSaltedHashOfProperStructure ( )

◆ createdSaltedHashOfProperStructureForCustomSaltWithoutSetting()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::createdSaltedHashOfProperStructureForCustomSaltWithoutSetting ( )

◆ createdSaltedHashOfProperStructureForMinimumHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::createdSaltedHashOfProperStructureForMinimumHashCount ( )

◆ emptyPasswordResultsInNullSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::emptyPasswordResultsInNullSaltedPassword ( )
Test:

Definition at line 75 of file BlowfishSaltTest.php.

◆ hasCorrectBaseClass()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::hasCorrectBaseClass ( )
Test:

Definition at line 54 of file BlowfishSaltTest.php.

◆ modifiedHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::modifiedHashCount ( )
Test:

Definition at line 287 of file BlowfishSaltTest.php.

◆ modifiedMaxHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::modifiedMaxHashCount ( )
Test:

Definition at line 275 of file BlowfishSaltTest.php.

◆ modifiedMinHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::modifiedMinHashCount ( )
Test:

Definition at line 263 of file BlowfishSaltTest.php.

◆ nonEmptyPasswordResultsInNonNullSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::nonEmptyPasswordResultsInNonNullSaltedPassword ( )

◆ nonZeroSaltLength()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::nonZeroSaltLength ( )
Test:

Definition at line 67 of file BlowfishSaltTest.php.

◆ passwordVariationsResultInDifferentHashes()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::passwordVariationsResultInDifferentHashes ( )

◆ setUp()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::setUp ( )
protected

Sets up the fixtures for this testcase.

Returns
void

Definition at line 34 of file BlowfishSaltTest.php.

◆ skipTestIfBlowfishIsNotAvailable()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::skipTestIfBlowfishIsNotAvailable ( )
protected

Marks tests as skipped if the blowfish method is not available.

Returns
void

Definition at line 44 of file BlowfishSaltTest.php.

Referenced by TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithNonValidPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithValidAlphaCharClassPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithValidAsciiSpecialCharClassPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithValidLatin1SpecialCharClassPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithValidLatin1UmlautCharClassPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\authenticationWithValidNumericCharClassPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\createdSaltedHashOfProperStructure(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\createdSaltedHashOfProperStructureForCustomSaltWithoutSetting(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\createdSaltedHashOfProperStructureForMinimumHashCount(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\nonEmptyPasswordResultsInNonNullSaltedPassword(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\passwordVariationsResultInDifferentHashes(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\updateNecessityForDecreasedHashcount(), and TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest\updateNecessityForValidSaltedPassword().

◆ updateNecessityForDecreasedHashcount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::updateNecessityForDecreasedHashcount ( )

◆ updateNecessityForIncreasedHashcount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::updateNecessityForIncreasedHashcount ( )
Test:

Definition at line 314 of file BlowfishSaltTest.php.

◆ updateNecessityForValidSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::updateNecessityForValidSaltedPassword ( )

Member Data Documentation

◆ $objectInstance

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\BlowfishSaltTest::$objectInstance = null
protected

Definition at line 27 of file BlowfishSaltTest.php.