![]() |
TYPO3
7.6
|
Protected Member Functions | |
setUp () | |
Protected Attributes | |
$rootline | |
$matchCondition | |
$testGlobalNamespace | |
$testTableName | |
Private Member Functions | |
setUpBackend () | |
setUpDatabaseMockForDeterminePageId () | |
Testcase for class .
Definition at line 23 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
adminUserConditionDoesNotMatchRegularUser | ( | ) |
Tests whether checkinf for an admin user matches
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
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
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)
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)
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)
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'
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'
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'
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'
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'
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'
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'
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.
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.
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().
string | $fields | |
string | $table | |
string | $where |
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().
mixed | $resource |
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.
Definition at line 242 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
deviceConditionMatchesRobot | ( | ) |
Tests whether a device type condition matches a crawler.
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.
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.
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'.
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'.
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'.
Definition at line 906 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References GeneralUtility\getIndpEnv().
globalStringConditionMatchesEmptyRegularExpression | ( | ) |
Tests whether string comparison matches.
Definition at line 588 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString | ( | ) |
Tests whether string comparison matches.
Definition at line 539 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString | ( | ) |
Tests whether string comparison matches.
Definition at line 553 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalStringConditionMatchesOnEqualExpression | ( | ) |
Tests whether string comparison matches.
Definition at line 528 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalStringConditionMatchesRegularExpression | ( | ) |
Tests whether string comparison matches.
Definition at line 576 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalStringConditionMatchesWildcardExpression | ( | ) |
Tests whether string comparison matches.
Definition at line 564 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero | ( | ) |
Tests whether numerical comparison matches.
Definition at line 514 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionDoesNotMatchOnNotEqualExpression | ( | ) |
Tests whether numerical comparison does not match.
Definition at line 433 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnEmptyExpressionWithNoValueSet | ( | ) |
Tests whether numerical comparison matches.
Definition at line 502 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnEqualExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 392 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnEqualExpressionWithMultipleValues | ( | ) |
Tests whether numerical comparison matches.
Definition at line 405 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnGreaterThanExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 478 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnGreaterThanOrEqualExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 489 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnLowerThanExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 454 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnLowerThanOrEqualExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 465 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnNotEqualExpression | ( | ) |
Tests whether numerical comparison matches.
Definition at line 422 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues | ( | ) |
Tests whether numerical comparison matches.
Definition at line 443 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
languageConditionMatchesCompleteLanguagesExpression | ( | ) |
Tests whether the language comparison matches.
Definition at line 278 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
languageConditionMatchesMultipleLanguagesExpression | ( | ) |
Tests whether the language comparison matches.
Definition at line 266 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
languageConditionMatchesSingleLanguageExpression | ( | ) |
Tests whether the language comparison matches.
Definition at line 254 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
loginUserConditionDoesNotMatchSingleLoggedInUser | ( | ) |
Tests whether user comparison matches.
Definition at line 334 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
loginUserConditionMatchesAnyLoggedInUser | ( | ) |
Tests whether user comparison matches.
Definition at line 312 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
loginUserConditionMatchesMultipleLoggedInUsers | ( | ) |
Tests whether user comparison matches.
Definition at line 345 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
loginUserConditionMatchesSingleLoggedInUser | ( | ) |
Tests whether user comparison matches.
Definition at line 323 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
matchCallsTestConditionAndHandsOverParameters | ( | ) |
Definition at line 1081 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileCallingModuleWithPageTree | ( | ) |
Tests whether determining a pageId works.
Definition at line 932 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 1018 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References ConditionMatcherTest\$testTableName, and ConditionMatcherTest\setUpDatabaseMockForDeterminePageId().
pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage | ( | ) |
Tests whether determining a pageId works.
Definition at line 1006 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileCreatingARecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 969 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 981 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References ConditionMatcherTest\$testTableName, and ConditionMatcherTest\setUpDatabaseMockForDeterminePageId().
pageIdCanBeDeterminedWhileDeletingAPageRecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 994 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileEditingAPageRecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 944 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
pageIdCanBeDeterminedWhileEditingARegularRecord | ( | ) |
Tests whether determining a pageId works.
Definition at line 956 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References ConditionMatcherTest\$testTableName, and ConditionMatcherTest\setUpDatabaseMockForDeterminePageId().
pageIdCanBeDeterminedWhileMovingARecordToAnotherPage | ( | ) |
Tests whether determining a pageId works.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Definition at line 686 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
|
protected |
Set up tests
Definition at line 48 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS, ConditionMatcherTest\$testGlobalNamespace, ConditionMatcherTest\$testTableName, GeneralUtility\flushInternalRuntimeCaches(), and ConditionMatcherTest\setUpBackend().
|
private |
Set up a backend
Definition at line 62 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
Referenced by ConditionMatcherTest\setUp().
|
private |
Set up database mock
Definition at line 75 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
Referenced by ConditionMatcherTest\pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord(), ConditionMatcherTest\pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord(), and ConditionMatcherTest\pageIdCanBeDeterminedWhileEditingARegularRecord().
simulateDisabledMatchAllConditionsFailsOnFaultyExpression | ( | ) |
Tests whether a faulty expression fails.
Definition at line 87 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
simulateEnabledMatchAllConditionsSucceeds | ( | ) |
Tests whether simulating positive matches for all conditions succeeds.
Definition at line 97 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
simulateEnabledMatchSpecificConditionsSucceeds | ( | ) |
Tests whether simulating positive matches for specific conditions succeeds.
Definition at line 108 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
treeLevelConditionDoesNotMatchFaultyValue | ( | ) |
Tests whether treeLevel comparison matches.
Definition at line 622 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage | ( | ) |
Tests whether treeLevel comparison matches when creating new pages.
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.
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.
Definition at line 611 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
treeLevelConditionMatchesSingleValue | ( | ) |
Tests whether treeLevel comparison matches.
Definition at line 600 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
usergroupConditionMatchesMultipleUserGroupId | ( | ) |
Tests whether usergroup comparison matches.
Definition at line 301 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
usergroupConditionMatchesSingleGroupId | ( | ) |
Tests whether usergroup comparison matches.
Definition at line 290 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
References $GLOBALS.
|
protected |
Definition at line 33 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
|
protected |
Definition at line 28 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
|
protected |
Definition at line 38 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
Referenced by ConditionMatcherTest\genericGetVariablesSucceedsWithAnyGlobalNamespace(), and ConditionMatcherTest\setUp().
|
protected |
Definition at line 43 of file backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php.
Referenced by ConditionMatcherTest\pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord(), ConditionMatcherTest\pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord(), ConditionMatcherTest\pageIdCanBeDeterminedWhileEditingARegularRecord(), and ConditionMatcherTest\setUp().