TYPO3 CMS  TYPO3_6-2
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

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

Protected Attributes

 $rootline
 
 $matchCondition
 
 $testTableName
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Private Member Functions

 setUpBackend ()
 
 setUpDatabaseMockForDeterminePageId ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for class .

Author
Oliver Hader olive.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 22 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 337 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 315 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 326 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. 4.9 is compatible to 4.0 but not to 5.0)

Test:

Definition at line 782 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ compatVersionConditionMatchesOlderRelease()

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

Tests whether the compatibility version can be evaluated. (e.g. 4.9 is compatible to 4.0 but not to 5.0)

Test:

Definition at line 760 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ compatVersionConditionMatchesSameRelease()

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

Tests whether the compatibility version can be evaluated. (e.g. 4.9 is compatible to 4.0 but not to 5.0)

Test:

Definition at line 771 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ 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 178 of file ConditionMatcherTest.php.

References $result.

◆ 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 189 of file ConditionMatcherTest.php.

References $result.

◆ 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 123 of file ConditionMatcherTest.php.

References $result.

◆ 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 134 of file ConditionMatcherTest.php.

References $result.

◆ 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 145 of file ConditionMatcherTest.php.

References $result.

◆ 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 156 of file ConditionMatcherTest.php.

References $result.

◆ 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 167 of file ConditionMatcherTest.php.

References $result.

◆ 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 112 of file ConditionMatcherTest.php.

References $result.

◆ 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 100 of file ConditionMatcherTest.php.

References $result.

◆ 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 957 of file ConditionMatcherTest.php.

◆ 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 977 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 211 of file ConditionMatcherTest.php.

References $result.

◆ deviceConditionMatchesRobot()

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

Tests whether a device type condition matches a crawler.

Test:

Definition at line 200 of file ConditionMatcherTest.php.

References $result.

◆ 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 805 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 837 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ 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 816 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 792 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 827 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 528 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 483 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 496 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEqualExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 473 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesRegularExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 517 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesWildcardExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 506 of file ConditionMatcherTest.php.

◆ globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero()

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

Tests whether numerical comparison matches.

Test:

Definition at line 460 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 386 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEmptyExpressionWithNoValueSet()

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

Tests whether numerical comparison matches.

Test:

Definition at line 449 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 348 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 360 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 427 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 437 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 405 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 415 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 376 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 395 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 244 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 233 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 222 of file ConditionMatcherTest.php.

◆ loginUserConditionDoesNotMatchSingleLoggedInUser()

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

Tests whether user comparison matches.

Test:

Definition at line 295 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 275 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 305 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 285 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ pageIdCanBeDeterminedWhileCallingModuleWithPageTree()

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

Tests whether determining a pageId works.

Test:

Definition at line 851 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 919 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 885 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 908 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 862 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 942 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 748 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 737 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 726 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 715 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 653 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 642 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 664 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 686 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 631 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 620 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 68 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 78 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 88 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 559 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 569 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 591 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 549 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesSingleValue()

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

Tests whether treeLevel comparison matches.

Test:

Definition at line 539 of file ConditionMatcherTest.php.

◆ usergroupConditionMatchesMultipleUserGroupId()

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

Tests whether usergroup comparison matches.

Test:

Definition at line 265 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 255 of file ConditionMatcherTest.php.

References $GLOBALS.

Member Data Documentation

◆ $matchCondition

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

Definition at line 32 of file ConditionMatcherTest.php.

◆ $rootline

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

Definition at line 27 of file ConditionMatcherTest.php.

◆ $testTableName