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

Public Member Functions

 matchingApplicationContextConditionsDataProvider ()
 
 notMatchingApplicationContextConditionsDataProvider ()
 
 evaluateConditionCommonDevIpMaskDataProvider ()
 
 evaluateConditionCommonEvaluatesIpAddressesCorrectly ($devIpMask, $actualIp, $expectedResult)
 
 testUserFuncIsCalled ()
 
 testUserFuncWithSingleArgument ()
 
 testUserFuncWithIntegerZeroArgument ()
 
 testUserFuncWithWhitespaceArgument ()
 
 testUserFuncWithMultipleArguments ()
 
 testUserFuncWithMultipleDifferentArgumentsNullBoolString ()
 
 testUserFuncWithMultipleDifferentArgumentsNullStringBool ()
 
 testUserFuncWithMultipleDifferentArgumentsStringBoolNull ()
 
 testUserFuncWithMultipleDifferentArgumentsStringNullBool ()
 
 testUserFuncWithMultipleDifferentArgumentsBoolNullString ()
 
 testUserFuncWithMultipleDifferentArgumentsBoolStringNull ()
 
 testUserFuncWithMultipleDifferentArgumentsNullBoolStringSingleQuotes ()
 
 testUserFuncWithMultipleDifferentArgumentsNullStringBoolSingleQuotes ()
 
 testUserFuncWithMultipleDifferentArgumentsStringBoolNullSingleQuotes ()
 
 testUserFuncWithMultipleDifferentArgumentsStringNullBoolSingleQuotes ()
 
 testUserFuncWithMultipleDifferentArgumentsBoolNullStringSingleQuotes ()
 
 testUserFuncWithMultipleDifferentArgumentsBoolStringNullSingleQuotes ()
 
 testUserFuncWithMultipleSingleQuotedArguments ()
 
 testUserFuncWithMultipleSoubleQuotedArguments ()
 
 testUserFuncReturnsFalse ()
 
 testUserFuncWithMultipleArgumentsAndQuotes ()
 
 testUserFuncWithMultipleArgumentsAndQuotesAndSpaces ()
 
 testUserFuncWithMultipleArgumentsAndQuotesAndSpacesStripped ()
 
 testUserFuncWithSpacesInQuotes ()
 
 testUserFuncWithMultipleArgumentsAndQuotesAndSpacesStrippedAndEscapes ()
 
 testUserFuncWithQuoteMissing ()
 
 testUserFuncWithQuotesInside ()
 
 testUserFuncWithClassMethodCall ()
 

Protected Member Functions

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

 $backupApplicationContext = null
 
 $conditionMatcher
 
 $evaluateConditionCommonMethod
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test cases

Definition at line 25 of file AbstractConditionMatcherTest.php.

Member Function Documentation

evaluateConditionCommonDevIpMaskDataProvider ( )

Data provider for evaluateConditionCommonEvaluatesIpAddressesCorrectly

Returns
array[]

Definition at line 134 of file AbstractConditionMatcherTest.php.

evaluateConditionCommonEvaluatesIpAddressesCorrectly (   $devIpMask,
  $actualIp,
  $expectedResult 
)
Test:
evaluateConditionCommonDevIpMaskDataProvider

Definition at line 187 of file AbstractConditionMatcherTest.php.

References $GLOBALS.

matchingApplicationContextConditionsDataProvider ( )

Data provider with matching applicationContext conditions.

Returns
array[]

Definition at line 71 of file AbstractConditionMatcherTest.php.

notMatchingApplicationContextConditionsDataProvider ( )

Data provider with not matching applicationContext conditions.

Returns
array[]

Definition at line 102 of file AbstractConditionMatcherTest.php.

setUp ( )
protected
tearDown ( )
protected

Tear down

Definition at line 60 of file AbstractConditionMatcherTest.php.

References GeneralUtilityFixture\setApplicationContext().

testUserFuncIsCalled ( )
Test:

Definition at line 202 of file AbstractConditionMatcherTest.php.

testUserFuncReturnsFalse ( )
Test:

Definition at line 449 of file AbstractConditionMatcherTest.php.

testUserFuncWithClassMethodCall ( )
Test:

Definition at line 553 of file AbstractConditionMatcherTest.php.

testUserFuncWithIntegerZeroArgument ( )
Test:

Definition at line 228 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleArguments ( )
Test:

Definition at line 254 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleArgumentsAndQuotes ( )
Test:

Definition at line 462 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleArgumentsAndQuotesAndSpaces ( )
Test:

Definition at line 475 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleArgumentsAndQuotesAndSpacesStripped ( )
Test:

Definition at line 488 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleArgumentsAndQuotesAndSpacesStrippedAndEscapes ( )
Test:

Definition at line 514 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsBoolNullString ( )
Test:

Definition at line 319 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsBoolNullStringSingleQuotes ( )
Test:

Definition at line 397 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsBoolStringNull ( )
Test:

Definition at line 332 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsBoolStringNullSingleQuotes ( )
Test:

Definition at line 410 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsNullBoolString ( )
Test:

Definition at line 267 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsNullBoolStringSingleQuotes ( )
Test:

Definition at line 345 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsNullStringBool ( )
Test:

Definition at line 280 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsNullStringBoolSingleQuotes ( )
Test:

Definition at line 358 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsStringBoolNull ( )
Test:

Definition at line 293 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsStringBoolNullSingleQuotes ( )
Test:

Definition at line 371 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsStringNullBool ( )
Test:

Definition at line 306 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleDifferentArgumentsStringNullBoolSingleQuotes ( )
Test:

Definition at line 384 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleSingleQuotedArguments ( )
Test:

Definition at line 423 of file AbstractConditionMatcherTest.php.

testUserFuncWithMultipleSoubleQuotedArguments ( )
Test:

Definition at line 436 of file AbstractConditionMatcherTest.php.

testUserFuncWithQuoteMissing ( )
Test:

Definition at line 527 of file AbstractConditionMatcherTest.php.

testUserFuncWithQuotesInside ( )
Test:

Definition at line 540 of file AbstractConditionMatcherTest.php.

testUserFuncWithSingleArgument ( )
Test:

Definition at line 215 of file AbstractConditionMatcherTest.php.

testUserFuncWithSpacesInQuotes ( )
Test:

Definition at line 501 of file AbstractConditionMatcherTest.php.

testUserFuncWithWhitespaceArgument ( )
Test:

Definition at line 241 of file AbstractConditionMatcherTest.php.

Member Data Documentation

$backupApplicationContext = null
protected

Definition at line 30 of file AbstractConditionMatcherTest.php.

$conditionMatcher
protected

Definition at line 35 of file AbstractConditionMatcherTest.php.

$evaluateConditionCommonMethod
protected

Definition at line 40 of file AbstractConditionMatcherTest.php.