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

Public Member Functions

 cacheHashCalculationWorks ($params, $expected)
 
 cacheHashCalculationDataProvider ()
 
 getRelevantParametersWorks ($params, $expected)
 
 getRelevantParametersDataprovider ()
 
 canGenerateForParameters ($params, $expected)
 
 generateForParametersThrowsExceptionWhenIdIsNotSpecified ()
 
 canGenerateForParametersDataProvider ()
 
 parametersRequireCacheHashWorks ($params, $expected)
 
 parametersRequireCacheHashDataprovider ()
 
 canWhitelistParameters ($params, $expected)
 
 canWhitelistParametersDataProvider ()
 
 canSkipParametersWithEmptyValues ($params, $settings, $expected)
 
 canSkipParametersWithEmptyValuesDataProvider ()
 

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

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

Detailed Description

Testcase

Definition at line 20 of file CacheHashCalculatorTest.php.

Member Function Documentation

cacheHashCalculationDataProvider ( )
Returns
array

Definition at line 55 of file CacheHashCalculatorTest.php.

cacheHashCalculationWorks (   $params,
  $expected 
)

cacheHashCalculationDataProvider

Test:

Definition at line 47 of file CacheHashCalculatorTest.php.

canGenerateForParameters (   $params,
  $expected 
)

canGenerateForParametersDataProvider

Test:

Definition at line 124 of file CacheHashCalculatorTest.php.

canGenerateForParametersDataProvider ( )
Returns
array

Definition at line 142 of file CacheHashCalculatorTest.php.

canSkipParametersWithEmptyValues (   $params,
  $settings,
  $expected 
)

canSkipParametersWithEmptyValuesDataProvider

Test:

Definition at line 218 of file CacheHashCalculatorTest.php.

canSkipParametersWithEmptyValuesDataProvider ( )
Returns
array

Definition at line 228 of file CacheHashCalculatorTest.php.

canWhitelistParameters (   $params,
  $expected 
)

In case the cHashOnlyForParameters is set, other parameters should not incluence the cHash (except the encryption key of course)

canWhitelistParametersDataProvider

Test:

Definition at line 190 of file CacheHashCalculatorTest.php.

canWhitelistParametersDataProvider ( )
Returns
array

Definition at line 201 of file CacheHashCalculatorTest.php.

generateForParametersThrowsExceptionWhenIdIsNotSpecified ( )
Test:
1467983513

Definition at line 134 of file CacheHashCalculatorTest.php.

getRelevantParametersDataprovider ( )
Returns
array

Definition at line 93 of file CacheHashCalculatorTest.php.

getRelevantParametersWorks (   $params,
  $expected 
)

getRelevantParametersDataprovider

Test:

Definition at line 84 of file CacheHashCalculatorTest.php.

parametersRequireCacheHashDataprovider ( )
Returns
array

Definition at line 172 of file CacheHashCalculatorTest.php.

parametersRequireCacheHashWorks (   $params,
  $expected 
)

parametersRequireCacheHashDataprovider

Test:

Definition at line 164 of file CacheHashCalculatorTest.php.

setUp ( )
protected

Definition at line 27 of file CacheHashCalculatorTest.php.

References $GLOBALS.

Member Data Documentation

$subject
protected

Definition at line 25 of file CacheHashCalculatorTest.php.