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

Public Member Functions

 hasCorrectBaseClass ()
 
 nonZeroSaltLength ()
 
 emptyPasswordResultsInNullSaltedPassword ()
 
 nonEmptyPasswordResultsInNonNullSaltedPassword ()
 
 createdSaltedHashOfProperStructure ()
 
 createdSaltedHashOfProperStructureForCustomSaltWithoutSetting ()
 
 authenticationWithValidAlphaCharClassPassword ()
 
 authenticationWithValidNumericCharClassPassword ()
 
 authenticationWithValidAsciiSpecialCharClassPassword ()
 
 authenticationWithValidLatin1SpecialCharClassPassword ()
 
 authenticationWithValidLatin1UmlautCharClassPassword ()
 
 authenticationWithNonValidPassword ()
 
 passwordVariationsResultInDifferentHashes ()
 
 noUpdateNecessityForMd5 ()
 

Protected Member Functions

 setUp ()
 
 getWarningWhenMethodUnavailable ()
 
- 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

Testcases for Md5Salt

Definition at line 20 of file Md5SaltTest.php.

Member Function Documentation

◆ authenticationWithNonValidPassword()

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

◆ authenticationWithValidAlphaCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::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 124 of file Md5SaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest\getWarningWhenMethodUnavailable().

◆ authenticationWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::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 154 of file Md5SaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest\getWarningWhenMethodUnavailable().

◆ authenticationWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::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 169 of file Md5SaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest\getWarningWhenMethodUnavailable().

◆ authenticationWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::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 188 of file Md5SaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest\getWarningWhenMethodUnavailable().

◆ authenticationWithValidNumericCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::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 139 of file Md5SaltTest.php.

References TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest\getWarningWhenMethodUnavailable().

◆ createdSaltedHashOfProperStructure()

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

◆ createdSaltedHashOfProperStructureForCustomSaltWithoutSetting()

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

◆ emptyPasswordResultsInNullSaltedPassword()

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

Definition at line 77 of file Md5SaltTest.php.

◆ getWarningWhenMethodUnavailable()

◆ hasCorrectBaseClass()

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

Definition at line 56 of file Md5SaltTest.php.

◆ nonEmptyPasswordResultsInNonNullSaltedPassword()

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

◆ nonZeroSaltLength()

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

Definition at line 69 of file Md5SaltTest.php.

◆ noUpdateNecessityForMd5()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\Md5SaltTest::noUpdateNecessityForMd5 ( )
Test:

Definition at line 239 of file Md5SaltTest.php.

◆ passwordVariationsResultInDifferentHashes()

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

◆ setUp()

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

Sets up the fixtures for this testcase.

Returns
void

Definition at line 34 of file Md5SaltTest.php.

Member Data Documentation

◆ $objectInstance

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

Definition at line 27 of file Md5SaltTest.php.