TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ConditionMatcherTest Class Reference
Inheritance diagram for ConditionMatcherTest:

Public Member Functions

 simulateDisabledMatchAllConditionsFailsOnFaultyExpression ()
 
 simulateEnabledMatchAllConditionsSucceeds ()
 
 simulateEnabledMatchSpecificConditionsSucceeds ()
 
 conditionMatchesInternetExplorer7Windows ()
 
 conditionDoesNotMatchInternetExplorer7Windows ()
 
 conditionDoesMatchIosWithCorrectSystemKey ()
 
 conditionDoesMatchIosWithOldSystemKey ()
 
 conditionDoesMatchWindows2kWithNewSystemKey ()
 
 conditionDoesMatchWindows2kWithOldSystemKey ()
 
 conditionDoesMatchWindowsNtWithSystemKey ()
 
 conditionDoesMatchAndroidWithNewSystemKey ()
 
 conditionDoesMatchAndroidWithOldSystemKey ()
 
 deviceConditionMatchesRobot ()
 
 deviceConditionDoesNotMatchRobot ()
 
 languageConditionMatchesSingleLanguageExpression ()
 
 languageConditionMatchesMultipleLanguagesExpression ()
 
 languageConditionMatchesCompleteLanguagesExpression ()
 
 usergroupConditionMatchesSingleGroupId ()
 
 usergroupConditionMatchesMultipleUserGroupId ()
 
 loginUserConditionMatchesAnyLoggedInUser ()
 
 loginUserConditionMatchesSingleLoggedInUser ()
 
 loginUserConditionDoesNotMatchSingleLoggedInUser ()
 
 loginUserConditionMatchesMultipleLoggedInUsers ()
 
 adminUserConditionMatchesAdminUser ()
 
 adminUserConditionMatchesRegularUser ()
 
 adminUserConditionDoesNotMatchRegularUser ()
 
 globalVarConditionMatchesOnEqualExpression ()
 
 globalVarConditionMatchesOnEqualExpressionWithMultipleValues ()
 
 globalVarConditionMatchesOnNotEqualExpression ()
 
 globalVarConditionDoesNotMatchOnNotEqualExpression ()
 
 globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues ()
 
 globalVarConditionMatchesOnLowerThanExpression ()
 
 globalVarConditionMatchesOnLowerThanOrEqualExpression ()
 
 globalVarConditionMatchesOnGreaterThanExpression ()
 
 globalVarConditionMatchesOnGreaterThanOrEqualExpression ()
 
 globalVarConditionMatchesOnEmptyExpressionWithNoValueSet ()
 
 globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero ()
 
 globalStringConditionMatchesOnEqualExpression ()
 
 globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString ()
 
 globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString ()
 
 globalStringConditionMatchesWildcardExpression ()
 
 globalStringConditionMatchesRegularExpression ()
 
 globalStringConditionMatchesEmptyRegularExpression ()
 
 treeLevelConditionMatchesSingleValue ()
 
 treeLevelConditionMatchesMultipleValues ()
 
 treeLevelConditionDoesNotMatchFaultyValue ()
 
 treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage ()
 
 treeLevelConditionMatchesCurrentPageIdWhileSavingNewPage ()
 
 PIDupinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDupinRootlineConditionMatchesMultiplePageIdsInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ()
 
 PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage ()
 
 PIDupinRootlineConditionMatchesCurrentPageIdWhileSavingNewPage ()
 
 PIDinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDinRootlineConditionMatchesMultiplePageIdsInRootline ()
 
 PIDinRootlineConditionMatchesLastPageIdInRootline ()
 
 PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 compatVersionConditionMatchesOlderRelease ()
 
 compatVersionConditionMatchesSameRelease ()
 
 compatVersionConditionDoesNotMatchNewerRelease ()
 
 genericGetVariablesSucceedsWithNamespaceGP ()
 
 genericGetVariablesFailsWithNamespaceTSFE ()
 
 genericGetVariablesSucceedsWithNamespaceENV ()
 
 genericGetVariablesSucceedsWithNamespaceIENV ()
 
 genericGetVariablesSucceedsWithAnyGlobalNamespace ()
 
 pageIdCanBeDeterminedWhileCallingModuleWithPageTree ()
 
 pageIdCanBeDeterminedWhileEditingAPageRecord ()
 
 pageIdCanBeDeterminedWhileEditingARegularRecord ()
 
 pageIdCanBeDeterminedWhileCreatingARecord ()
 
 pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord ()
 
 pageIdCanBeDeterminedWhileDeletingAPageRecord ()
 
 pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage ()
 
 pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord ()
 
 pageIdCanBeDeterminedWhileMovingARecordToAnotherPage ()
 
 determinePageIdByRecordDatabaseExecuteCallback ($fields, $table, $where)
 
 determinePageIdByRecordDatabaseFetchCallback ($resource)
 
 matchCallsTestConditionAndHandsOverParameters ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $rootline
 
 $matchCondition
 
 $testGlobalNamespace
 
 $testTableName
 

Private Member Functions

 setUpBackend ()
 
 setUpDatabaseMockForDeterminePageId ()
 

Detailed Description

Testcase for class .

Definition at line 23 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

Member Function Documentation

adminUserConditionDoesNotMatchRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 380 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

adminUserConditionMatchesAdminUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 356 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

adminUserConditionMatchesRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 368 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

compatVersionConditionDoesNotMatchNewerRelease ( )

Tests whether the compatibility version can be evaluated. (e.g. 7.9 is compatible to 7.0 but not to 15.0)

Test:

Definition at line 858 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

compatVersionConditionMatchesOlderRelease ( )

Tests whether the compatibility version can be evaluated. (e.g. 7.9 is compatible to 7.0 but not to 15.0)

Test:

Definition at line 836 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

compatVersionConditionMatchesSameRelease ( )

Tests whether the compatibility version can be evaluated. (e.g. 7.9 is compatible to 7.0 but not to 15.0)

Test:

Definition at line 847 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchAndroidWithNewSystemKey ( )

Tests whether a condition does match Android with the correct and more recent 'android'

Test:

Definition at line 206 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchAndroidWithOldSystemKey ( )

Tests whether a condition does match Android with the old 'linux'

Test:

Definition at line 218 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchIosWithCorrectSystemKey ( )

Tests whether a condition does match the iOS with the correct and more recent 'iOS'

Test:

Definition at line 146 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchIosWithOldSystemKey ( )

Tests whether a condition does match the iOS with the old 'mac'

Test:

Definition at line 158 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchWindows2kWithNewSystemKey ( )

Tests whether a condition does match Windows 2000 with the correct and more recent 'win2k'

Test:

Definition at line 170 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchWindows2kWithOldSystemKey ( )

Tests whether a condition does match Windows 2000 with the old 'winNT'

Test:

Definition at line 182 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesMatchWindowsNtWithSystemKey ( )

Tests whether a condition does match Windows NT with 'winNT'

Test:

Definition at line 194 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionDoesNotMatchInternetExplorer7Windows ( )

Tests whether a condition does not match Internet Explorer 7 on Windows.

Returns
void
Test:

Definition at line 134 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

conditionMatchesInternetExplorer7Windows ( )

Tests whether a condition matches Internet Explorer 7 on Windows.

Returns
void
Test:

Definition at line 121 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

determinePageIdByRecordDatabaseExecuteCallback (   $fields,
  $table,
  $where 
)

Callback method for pageIdCanBeDetermined test cases. Simulates TYPO3_DB->exec_SELECTquery().

Parameters
string$fields
string$table
string$where
Returns
mixed

Definition at line 1047 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

determinePageIdByRecordDatabaseFetchCallback (   $resource)

Callback method for pageIdCanBeDetermined test cases. Simulates TYPO3_DB->sql_fetch_assoc().

Parameters
mixed$resource
Returns
mixed

Definition at line 1068 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

deviceConditionDoesNotMatchRobot ( )

Tests whether a device type condition does not match a crawler.

Test:

Definition at line 242 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

deviceConditionMatchesRobot ( )

Tests whether a device type condition matches a crawler.

Test:

Definition at line 230 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

genericGetVariablesFailsWithNamespaceTSFE ( )

Tests whether the generic fetching of variables does not work with the namespace 'TSFE', since we are in the backend context here.

Test:

Definition at line 882 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

genericGetVariablesSucceedsWithAnyGlobalNamespace ( )

Tests whether the generic fetching of variables works with any global namespace.

Test:

Definition at line 917 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS, and ConditionMatcherTest\$testGlobalNamespace.

genericGetVariablesSucceedsWithNamespaceENV ( )

Tests whether the generic fetching of variables works with the namespace 'ENV'.

Test:

Definition at line 894 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

genericGetVariablesSucceedsWithNamespaceGP ( )

Tests whether the generic fetching of variables works with the namespace 'GP'.

Test:

Definition at line 868 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

genericGetVariablesSucceedsWithNamespaceIENV ( )

Tests whether the generic fetching of variables works with the namespace 'IENV'.

Test:

Definition at line 906 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References GeneralUtility\getIndpEnv().

globalStringConditionMatchesEmptyRegularExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 588 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 539 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 553 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalStringConditionMatchesOnEqualExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 528 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalStringConditionMatchesRegularExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 576 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalStringConditionMatchesWildcardExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 564 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero ( )

Tests whether numerical comparison matches.

Test:

Definition at line 514 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionDoesNotMatchOnNotEqualExpression ( )

Tests whether numerical comparison does not match.

Test:

Definition at line 433 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnEmptyExpressionWithNoValueSet ( )

Tests whether numerical comparison matches.

Test:

Definition at line 502 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 392 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnEqualExpressionWithMultipleValues ( )

Tests whether numerical comparison matches.

Test:

Definition at line 405 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnGreaterThanExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 478 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnGreaterThanOrEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 489 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnLowerThanExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 454 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnLowerThanOrEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 465 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnNotEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 422 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues ( )

Tests whether numerical comparison matches.

Test:

Definition at line 443 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

languageConditionMatchesCompleteLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 278 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

languageConditionMatchesMultipleLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 266 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

languageConditionMatchesSingleLanguageExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 254 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

loginUserConditionDoesNotMatchSingleLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 334 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

loginUserConditionMatchesAnyLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 312 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

loginUserConditionMatchesMultipleLoggedInUsers ( )

Tests whether user comparison matches.

Test:

Definition at line 345 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

loginUserConditionMatchesSingleLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 323 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

matchCallsTestConditionAndHandsOverParameters ( )
pageIdCanBeDeterminedWhileCallingModuleWithPageTree ( )

Tests whether determining a pageId works.

Test:

Definition at line 932 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord ( )
pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 1006 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

pageIdCanBeDeterminedWhileCreatingARecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 969 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord ( )
pageIdCanBeDeterminedWhileDeletingAPageRecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 994 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

pageIdCanBeDeterminedWhileEditingAPageRecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 944 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

pageIdCanBeDeterminedWhileEditingARegularRecord ( )
pageIdCanBeDeterminedWhileMovingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 1031 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ( )

Tests whether a page Id is found in all rootline entries.

Test:

Definition at line 823 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDinRootlineConditionMatchesLastPageIdInRootline ( )

Tests whether a page Id is found in all rootline entries.

Test:

Definition at line 811 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDinRootlineConditionMatchesMultiplePageIdsInRootline ( )

Tests whether a page Id is found in all rootline entries.

Test:

Definition at line 799 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDinRootlineConditionMatchesSinglePageIdInRootline ( )

Tests whether a page Id is found in all rootline entries.

Test:

Definition at line 787 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

Definition at line 722 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

Definition at line 710 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

Definition at line 734 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

PIDupinRootlineConditionMatchesCurrentPageIdWhileSavingNewPage ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

999 is the uid of the page that was just created

Definition at line 757 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

PIDupinRootlineConditionMatchesMultiplePageIdsInRootline ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

Definition at line 698 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

PIDupinRootlineConditionMatchesSinglePageIdInRootline ( )

Tests whether a page Id is found in the previous rootline entries.

Test:

Definition at line 686 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

setUp ( )
protected
setUpBackend ( )
private
setUpDatabaseMockForDeterminePageId ( )
private
simulateDisabledMatchAllConditionsFailsOnFaultyExpression ( )

Tests whether a faulty expression fails.

Test:

Definition at line 87 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

simulateEnabledMatchAllConditionsSucceeds ( )

Tests whether simulating positive matches for all conditions succeeds.

Test:

Definition at line 97 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

simulateEnabledMatchSpecificConditionsSucceeds ( )

Tests whether simulating positive matches for specific conditions succeeds.

Test:

Definition at line 108 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

treeLevelConditionDoesNotMatchFaultyValue ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 622 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage ( )

Tests whether treeLevel comparison matches when creating new pages.

Test:

Definition at line 633 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

treeLevelConditionMatchesCurrentPageIdWhileSavingNewPage ( )

Tests whether treeLevel comparison matches when creating new pages.

Test:

999 is the uid of the page that was just created

Definition at line 656 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

treeLevelConditionMatchesMultipleValues ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 611 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

treeLevelConditionMatchesSingleValue ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 600 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

usergroupConditionMatchesMultipleUserGroupId ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 301 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

usergroupConditionMatchesSingleGroupId ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 290 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.

References $GLOBALS.

Member Data Documentation

$matchCondition
protected
$rootline
protected
$testGlobalNamespace
protected
$testTableName
protected