TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\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 ()
 
 usergroupConditionDoesNotMatchDefaulUserGroupIds ()
 
 loginUserConditionMatchesAnyLoggedInUser ()
 
 loginUserConditionMatchesSingleLoggedInUser ()
 
 loginUserConditionMatchesMultipleLoggedInUsers ()
 
 loginUserConditionDoesNotMatchIfNotUserIsLoggedId ()
 
 loginUserConditionMatchIfUserIsNotLoggedIn ()
 
 globalVarConditionMatchesOnEqualExpression ()
 
 globalVarConditionMatchesOnEqualExpressionWithMultipleValues ()
 
 globalVarConditionMatchesOnNotEqualExpression ()
 
 globalVarConditionDoesNotMatchOnNotEqualExpression ()
 
 globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues ()
 
 globalVarConditionMatchesOnLowerThanExpression ()
 
 globalVarConditionMatchesOnLowerThanOrEqualExpression ()
 
 globalVarConditionMatchesOnGreaterThanExpression ()
 
 globalVarConditionMatchesOnGreaterThanOrEqualExpression ()
 
 globalVarConditionMatchesOnEmptyExpressionWithNoValueSet ()
 
 globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero ()
 
 globalVarConditionMatchesOnArrayExpressionWithZeroAsKey ()
 
 globalStringConditionMatchesOnEqualExpression ()
 
 globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString ()
 
 globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString ()
 
 globalStringConditionMatchesWildcardExpression ()
 
 globalStringConditionMatchesRegularExpression ()
 
 globalStringConditionMatchesEmptyRegularExpression ()
 
 treeLevelConditionMatchesSingleValue ()
 
 treeLevelConditionMatchesMultipleValues ()
 
 treeLevelConditionDoesNotMatchFaultyValue ()
 
 PIDupinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDupinRootlineConditionMatchesMultiplePageIdsInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ()
 
 PIDinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDinRootlineConditionMatchesMultiplePageIdsInRootline ()
 
 PIDinRootlineConditionMatchesLastPageIdInRootline ()
 
 PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 compatVersionConditionMatchesOlderRelease ()
 
 compatVersionConditionMatchesSameRelease ()
 
 compatVersionConditionDoesNotMatchNewerRelease ()
 
 genericGetVariablesSucceedsWithNamespaceGP ()
 
 genericGetVariablesSucceedsWithNamespaceTSFE ()
 
 genericGetVariablesSucceedsWithNamespaceENV ()
 
 genericGetVariablesSucceedsWithNamespaceIENV ()
 
 genericGetVariablesSucceedsWithAnyGlobalNamespace ()
 
 matchThrowsExceptionIfConditionClassDoesNotInheritFromAbstractCondition ()
 
 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

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

Detailed Description

Test case

Definition at line 24 of file ConditionMatcherTest.php.

Member Function Documentation

◆ compatVersionConditionDoesNotMatchNewerRelease()

TYPO3\CMS\Frontend\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 715 of file ConditionMatcherTest.php.

◆ compatVersionConditionMatchesOlderRelease()

TYPO3\CMS\Frontend\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 693 of file ConditionMatcherTest.php.

◆ compatVersionConditionMatchesSameRelease()

TYPO3\CMS\Frontend\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 704 of file ConditionMatcherTest.php.

◆ conditionDoesMatchAndroidWithNewSystemKey()

TYPO3\CMS\Frontend\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 176 of file ConditionMatcherTest.php.

◆ conditionDoesMatchAndroidWithOldSystemKey()

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

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

Test:

Definition at line 188 of file ConditionMatcherTest.php.

◆ conditionDoesMatchIosWithCorrectSystemKey()

TYPO3\CMS\Frontend\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 116 of file ConditionMatcherTest.php.

◆ conditionDoesMatchIosWithOldSystemKey()

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

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

Test:

Definition at line 128 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindows2kWithNewSystemKey()

TYPO3\CMS\Frontend\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 140 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindows2kWithOldSystemKey()

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

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

Test:

Definition at line 152 of file ConditionMatcherTest.php.

◆ conditionDoesMatchWindowsNtWithSystemKey()

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

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

Test:

Definition at line 164 of file ConditionMatcherTest.php.

◆ conditionDoesNotMatchInternetExplorer7Windows()

TYPO3\CMS\Frontend\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 104 of file ConditionMatcherTest.php.

◆ conditionMatchesInternetExplorer7Windows()

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

Tests whether a condition matches Internet Explorer 7 on Windows.

Returns
void
Test:

Definition at line 91 of file ConditionMatcherTest.php.

◆ deviceConditionDoesNotMatchRobot()

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

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

Test:

Definition at line 212 of file ConditionMatcherTest.php.

◆ deviceConditionMatchesRobot()

TYPO3\CMS\Frontend\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.

◆ genericGetVariablesSucceedsWithAnyGlobalNamespace()

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

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

Test:

Definition at line 775 of file ConditionMatcherTest.php.

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

◆ genericGetVariablesSucceedsWithNamespaceENV()

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

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

Test:

Definition at line 752 of file ConditionMatcherTest.php.

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

◆ genericGetVariablesSucceedsWithNamespaceGP()

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

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

Test:

Definition at line 725 of file ConditionMatcherTest.php.

◆ genericGetVariablesSucceedsWithNamespaceIENV()

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

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

Test:

Definition at line 764 of file ConditionMatcherTest.php.

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

◆ genericGetVariablesSucceedsWithNamespaceTSFE()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceTSFE ( )

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

Test:

Definition at line 738 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ globalStringConditionMatchesEmptyRegularExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 562 of file ConditionMatcherTest.php.

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

◆ globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString()

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

Tests whether string comparison matches.

Test:

Definition at line 513 of file ConditionMatcherTest.php.

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

◆ globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString()

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

Tests whether string comparison matches.

Test:

Definition at line 527 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEqualExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 502 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesRegularExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 550 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesWildcardExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 538 of file ConditionMatcherTest.php.

◆ globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero()

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

Tests whether numerical comparison matches.

Test:

Definition at line 474 of file ConditionMatcherTest.php.

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

◆ globalVarConditionDoesNotMatchOnNotEqualExpression()

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

Tests whether numerical comparison does not match.

Test:

Definition at line 393 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnArrayExpressionWithZeroAsKey()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnArrayExpressionWithZeroAsKey ( )

Tests whether an array with zero as key matches its value

Test:

Definition at line 488 of file ConditionMatcherTest.php.

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

◆ globalVarConditionMatchesOnEmptyExpressionWithNoValueSet()

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

Tests whether numerical comparison matches.

Test:

Definition at line 462 of file ConditionMatcherTest.php.

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

◆ globalVarConditionMatchesOnEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 352 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 365 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 438 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 449 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 414 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 425 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 382 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 403 of file ConditionMatcherTest.php.

◆ languageConditionMatchesCompleteLanguagesExpression()

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

Tests whether the language comparison matches.

Test:

Definition at line 248 of file ConditionMatcherTest.php.

◆ languageConditionMatchesMultipleLanguagesExpression()

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

Tests whether the language comparison matches.

Test:

Definition at line 236 of file ConditionMatcherTest.php.

◆ languageConditionMatchesSingleLanguageExpression()

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

Tests whether the language comparison matches.

Test:

Definition at line 224 of file ConditionMatcherTest.php.

◆ loginUserConditionDoesNotMatchIfNotUserIsLoggedId()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionDoesNotMatchIfNotUserIsLoggedId ( )

Tests whether user comparison matches.

Test:

Definition at line 328 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesAnyLoggedInUser()

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

Tests whether user comparison matches.

Test:

Definition at line 292 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesMultipleLoggedInUsers()

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

Tests whether user comparison matches.

Test:

Definition at line 316 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesSingleLoggedInUser()

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

Tests whether user comparison matches.

Test:

Definition at line 304 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchIfUserIsNotLoggedIn()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchIfUserIsNotLoggedIn ( )

Tests whether user is not logged in

Test:

Definition at line 341 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ matchCallsTestConditionAndHandsOverParameters()

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

Definition at line 798 of file ConditionMatcherTest.php.

◆ matchThrowsExceptionIfConditionClassDoesNotInheritFromAbstractCondition()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::matchThrowsExceptionIfConditionClassDoesNotInheritFromAbstractCondition ( )
Test:

Definition at line 789 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

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

Test:

Definition at line 681 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDinRootlineConditionMatchesLastPageIdInRootline()

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

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

Test:

Definition at line 670 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDinRootlineConditionMatchesMultiplePageIdsInRootline()

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

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

Test:

Definition at line 659 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDinRootlineConditionMatchesSinglePageIdInRootline()

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

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

Test:

Definition at line 648 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline()

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

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

Test:

Definition at line 637 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

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

Test:

Definition at line 626 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesMultiplePageIdsInRootline()

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

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

Test:

Definition at line 615 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesSinglePageIdInRootline()

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

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

Test:

Definition at line 604 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ setUp()

◆ simulateDisabledMatchAllConditionsFailsOnFaultyExpression()

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

Tests whether a faulty expression fails.

Test:

Definition at line 56 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchAllConditionsSucceeds()

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

Tests whether simulating positive matches for all conditions succeeds.

Test:

Definition at line 67 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchSpecificConditionsSucceeds()

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

Tests whether simulating positive matches for specific conditions succeeds.

Test:

Definition at line 78 of file ConditionMatcherTest.php.

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

◆ treeLevelConditionDoesNotMatchFaultyValue()

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

Tests whether treeLevel comparison matches.

Test:

Definition at line 594 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesMultipleValues()

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

Tests whether treeLevel comparison matches.

Test:

Definition at line 584 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesSingleValue()

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

Tests whether treeLevel comparison matches.

Test:

Definition at line 574 of file ConditionMatcherTest.php.

◆ usergroupConditionDoesNotMatchDefaulUserGroupIds()

TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::usergroupConditionDoesNotMatchDefaulUserGroupIds ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 281 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ usergroupConditionMatchesMultipleUserGroupId()

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

Tests whether usergroup comparison matches.

Test:

Definition at line 270 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ usergroupConditionMatchesSingleGroupId()

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

Tests whether usergroup comparison matches.

Test:

Definition at line 259 of file ConditionMatcherTest.php.

References $GLOBALS.

Member Data Documentation

◆ $matchCondition

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

Definition at line 34 of file ConditionMatcherTest.php.

◆ $testGlobalNamespace