TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

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 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

 $rootline
 
 $matchCondition
 
 $testGlobalNamespace
 
 $testTableName
 
- 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
 

Private Member Functions

 setUpBackend ()
 
 setUpDatabaseMockForDeterminePageId ()
 

Detailed Description

Testcase for class .

Definition at line 23 of file ConditionMatcherTest.php.

Member Function Documentation

◆ adminUserConditionDoesNotMatchRegularUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionDoesNotMatchRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 380 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ adminUserConditionMatchesAdminUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionMatchesAdminUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 356 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ adminUserConditionMatchesRegularUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionMatchesRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 368 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ compatVersionConditionDoesNotMatchNewerRelease()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

◆ compatVersionConditionMatchesOlderRelease()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

◆ compatVersionConditionMatchesSameRelease()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

◆ conditionDoesMatchAndroidWithNewSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchAndroidWithNewSystemKey ( )

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

Test:

Definition at line 206 of file ConditionMatcherTest.php.

◆ conditionDoesMatchAndroidWithOldSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchAndroidWithOldSystemKey ( )

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

Test:

Definition at line 218 of file ConditionMatcherTest.php.

◆ conditionDoesMatchIosWithCorrectSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchIosWithCorrectSystemKey ( )

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

Test:

Definition at line 146 of file ConditionMatcherTest.php.

◆ conditionDoesMatchIosWithOldSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchIosWithOldSystemKey ( )

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

Test:

Definition at line 158 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindows2kWithNewSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchWindows2kWithNewSystemKey ( )

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

Test:

Definition at line 170 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindows2kWithOldSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchWindows2kWithOldSystemKey ( )

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

Test:

Definition at line 182 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindowsNtWithSystemKey()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesMatchWindowsNtWithSystemKey ( )

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

Test:

Definition at line 194 of file ConditionMatcherTest.php.

◆ conditionDoesNotMatchInternetExplorer7Windows()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionDoesNotMatchInternetExplorer7Windows ( )

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

Returns
void
Test:

Definition at line 134 of file ConditionMatcherTest.php.

◆ conditionMatchesInternetExplorer7Windows()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::conditionMatchesInternetExplorer7Windows ( )

Tests whether a condition matches Internet Explorer 7 on Windows.

Returns
void
Test:

Definition at line 121 of file ConditionMatcherTest.php.

◆ determinePageIdByRecordDatabaseExecuteCallback()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

References TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\$testTableName.

◆ determinePageIdByRecordDatabaseFetchCallback()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::determinePageIdByRecordDatabaseFetchCallback (   $resource)

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

Parameters
mixed$resource
Returns
mixed

Definition at line 1069 of file ConditionMatcherTest.php.

◆ deviceConditionDoesNotMatchRobot()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::deviceConditionDoesNotMatchRobot ( )

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

Test:

Definition at line 242 of file ConditionMatcherTest.php.

◆ deviceConditionMatchesRobot()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::deviceConditionMatchesRobot ( )

Tests whether a device type condition matches a crawler.

Test:

Definition at line 230 of file ConditionMatcherTest.php.

◆ genericGetVariablesFailsWithNamespaceTSFE()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

References $GLOBALS.

◆ genericGetVariablesSucceedsWithAnyGlobalNamespace()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithAnyGlobalNamespace ( )

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

Test:

Definition at line 917 of file ConditionMatcherTest.php.

References $GLOBALS, and TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\$testGlobalNamespace.

◆ genericGetVariablesSucceedsWithNamespaceENV()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceENV ( )

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

Test:

Definition at line 894 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ genericGetVariablesSucceedsWithNamespaceGP()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceGP ( )

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

Test:

Definition at line 868 of file ConditionMatcherTest.php.

◆ genericGetVariablesSucceedsWithNamespaceIENV()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceIENV ( )

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

Test:

Definition at line 906 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

◆ globalStringConditionMatchesEmptyRegularExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesEmptyRegularExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 588 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 539 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 553 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesOnEqualExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 528 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesRegularExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesRegularExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 576 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesWildcardExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesWildcardExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 564 of file ConditionMatcherTest.php.

◆ globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero ( )

Tests whether numerical comparison matches.

Test:

Definition at line 514 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ globalVarConditionDoesNotMatchOnNotEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionDoesNotMatchOnNotEqualExpression ( )

Tests whether numerical comparison does not match.

Test:

Definition at line 433 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEmptyExpressionWithNoValueSet()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnEmptyExpressionWithNoValueSet ( )

Tests whether numerical comparison matches.

Test:

Definition at line 502 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ globalVarConditionMatchesOnEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 392 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEqualExpressionWithMultipleValues()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnEqualExpressionWithMultipleValues ( )

Tests whether numerical comparison matches.

Test:

Definition at line 405 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnGreaterThanExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 478 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanOrEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnGreaterThanOrEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 489 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnLowerThanExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 454 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanOrEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnLowerThanOrEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 465 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnNotEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 422 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues ( )

Tests whether numerical comparison matches.

Test:

Definition at line 443 of file ConditionMatcherTest.php.

◆ languageConditionMatchesCompleteLanguagesExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesCompleteLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 278 of file ConditionMatcherTest.php.

◆ languageConditionMatchesMultipleLanguagesExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesMultipleLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 266 of file ConditionMatcherTest.php.

◆ languageConditionMatchesSingleLanguageExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesSingleLanguageExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 254 of file ConditionMatcherTest.php.

◆ loginUserConditionDoesNotMatchSingleLoggedInUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionDoesNotMatchSingleLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 334 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesAnyLoggedInUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesAnyLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 312 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesMultipleLoggedInUsers()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesMultipleLoggedInUsers ( )

Tests whether user comparison matches.

Test:

Definition at line 345 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesSingleLoggedInUser()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesSingleLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 323 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ matchCallsTestConditionAndHandsOverParameters()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::matchCallsTestConditionAndHandsOverParameters ( )
Test:

Definition at line 1082 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCallingModuleWithPageTree()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCallingModuleWithPageTree ( )

Tests whether determining a pageId works.

Test:

Definition at line 932 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord ( )

◆ pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 1006 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCreatingARecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCreatingARecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 969 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord ( )

◆ pageIdCanBeDeterminedWhileDeletingAPageRecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileDeletingAPageRecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 994 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileEditingAPageRecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileEditingAPageRecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 944 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileEditingARegularRecord()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileEditingARegularRecord ( )

◆ pageIdCanBeDeterminedWhileMovingARecordToAnotherPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileMovingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 1031 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionDoesNotMatchPageIdNotInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ( )

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

Test:

Definition at line 823 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesLastPageIdInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesLastPageIdInRootline ( )

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

Test:

Definition at line 811 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesMultiplePageIdsInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesMultiplePageIdsInRootline ( )

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

Test:

Definition at line 799 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesSinglePageIdInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesSinglePageIdInRootline ( )

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

Test:

Definition at line 787 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ( )

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

Test:

Definition at line 722 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline ( )

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

Test:

Definition at line 710 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage ( )

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

Test:

Definition at line 734 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesCurrentPageIdWhileSavingNewPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesMultiplePageIdsInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesMultiplePageIdsInRootline ( )

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

Test:

Definition at line 698 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionMatchesSinglePageIdInRootline()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesSinglePageIdInRootline ( )

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

Test:

Definition at line 686 of file ConditionMatcherTest.php.

◆ setUp()

◆ setUpBackend()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::setUpBackend ( )
private

◆ setUpDatabaseMockForDeterminePageId()

◆ simulateDisabledMatchAllConditionsFailsOnFaultyExpression()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateDisabledMatchAllConditionsFailsOnFaultyExpression ( )

Tests whether a faulty expression fails.

Test:

Definition at line 87 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchAllConditionsSucceeds()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateEnabledMatchAllConditionsSucceeds ( )

Tests whether simulating positive matches for all conditions succeeds.

Test:

Definition at line 97 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchSpecificConditionsSucceeds()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateEnabledMatchSpecificConditionsSucceeds ( )

Tests whether simulating positive matches for specific conditions succeeds.

Test:

Definition at line 108 of file ConditionMatcherTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ treeLevelConditionDoesNotMatchFaultyValue()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionDoesNotMatchFaultyValue ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 622 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage ( )

Tests whether treeLevel comparison matches when creating new pages.

Test:

Definition at line 633 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ treeLevelConditionMatchesCurrentPageIdWhileSavingNewPage()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::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 ConditionMatcherTest.php.

References $GLOBALS.

◆ treeLevelConditionMatchesMultipleValues()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionMatchesMultipleValues ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 611 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesSingleValue()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionMatchesSingleValue ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 600 of file ConditionMatcherTest.php.

◆ usergroupConditionMatchesMultipleUserGroupId()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::usergroupConditionMatchesMultipleUserGroupId ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 301 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ usergroupConditionMatchesSingleGroupId()

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::usergroupConditionMatchesSingleGroupId ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 290 of file ConditionMatcherTest.php.

References $GLOBALS.

Member Data Documentation

◆ $matchCondition

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::$matchCondition
protected

Definition at line 33 of file ConditionMatcherTest.php.

◆ $rootline

TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::$rootline
protected

Definition at line 28 of file ConditionMatcherTest.php.

◆ $testGlobalNamespace

◆ $testTableName