‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest:

Public Member Functions

 usergroupConditionMatchesSingleGroupId ()
 
 usergroupConditionMatchesMultipleUserGroupId ()
 
 usergroupConditionDoesNotMatchDefaultUserGroupIds ()
 
 frontendUserGroupInOperatorConditionMatchesGroupId ()
 
 backendUserGroupInOperatorConditionMatchesGroupId ()
 
 loginUserConditionMatchesAnyLoggedInUser ()
 
 loginUserConditionMatchesSingleLoggedInUser ()
 
 loginUserConditionMatchesMultipleLoggedInUsers ()
 
 loginUserConditionDoesNotMatchIfNotUserIsLoggedId ()
 
 loginUserConditionMatchIfUserIsNotLoggedIn ()
 
 workspaceIdConditionMatchesCurrentWorkspaceId ()
 
 workspaceIsLiveMatchesCorrectWorkspaceState ()
 
 workspaceIsOfflineMatchesCorrectWorkspaceState ()
 
 treeLevelConditionMatchesSingleValue ()
 
 treeLevelConditionMatchesMultipleValues ()
 
 treeLevelConditionDoesNotMatchFaultyValue ()
 
 PIDupinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ()
 
 PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 PIDinRootlineConditionMatchesSinglePageIdInRootline ()
 
 PIDinRootlineConditionMatchesLastPageIdInRootline ()
 
 PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ()
 
 compatVersionConditionMatchesOlderRelease ()
 
 compatVersionConditionMatchesSameRelease ()
 
 compatVersionConditionDoesNotMatchNewerRelease ()
 
 genericGetVariablesSucceedsWithNamespaceTSFE ()
 
 genericGetVariablesSucceedsWithNamespaceSession ()
 
 genericGetVariablesSucceedsWithNamespaceENV ()
 
 siteLanguageMatchesCondition ()
 
 siteLanguageDoesNotMatchCondition ()
 
 siteMatchesCondition ()
 
 siteDoesNotMatchCondition ()
 
 pageLayoutIsResolvedCorrectlyFromBackendLayoutNextLevel ()
 
 pageLayoutIsResolvedCorrectlyFromBackendLayout ()
 

Protected Member Functions

 setUp ()
 
 getConditionMatcher ()
 
 setupFrontendUserContext (array $groups=[])
 
 setUpWorkspaceAspect (int $workspaceId)
 
 setupFrontendController (int $pageId)
 

Detailed Description

Definition at line 38 of file ConditionMatcherTest.php.

Member Function Documentation

◆ backendUserGroupInOperatorConditionMatchesGroupId()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::backendUserGroupInOperatorConditionMatchesGroupId ( )

◆ compatVersionConditionDoesNotMatchNewerRelease()

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

References TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ compatVersionConditionMatchesOlderRelease()

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

References TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ compatVersionConditionMatchesSameRelease()

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

References TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ frontendUserGroupInOperatorConditionMatchesGroupId()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::frontendUserGroupInOperatorConditionMatchesGroupId ( )

◆ genericGetVariablesSucceedsWithNamespaceENV()

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

◆ genericGetVariablesSucceedsWithNamespaceSession()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceSession ( )

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

Test:

Definition at line 386 of file ConditionMatcherTest.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ genericGetVariablesSucceedsWithNamespaceTSFE()

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

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

Test:

Definition at line 373 of file ConditionMatcherTest.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ getConditionMatcher()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::getConditionMatcher ( )
protected

Definition at line 568 of file ConditionMatcherTest.php.

Referenced by TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\backendUserGroupInOperatorConditionMatchesGroupId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\compatVersionConditionDoesNotMatchNewerRelease(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\compatVersionConditionMatchesOlderRelease(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\compatVersionConditionMatchesSameRelease(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\frontendUserGroupInOperatorConditionMatchesGroupId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceENV(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceSession(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceTSFE(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionDoesNotMatchIfNotUserIsLoggedId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesAnyLoggedInUser(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesMultipleLoggedInUsers(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesSingleLoggedInUser(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchIfUserIsNotLoggedIn(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\PIDinRootlineConditionDoesNotMatchPageIdNotInRootline(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\PIDinRootlineConditionMatchesLastPageIdInRootline(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\PIDupinRootlineConditionMatchesSinglePageIdInRootline(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\siteDoesNotMatchCondition(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\siteLanguageDoesNotMatchCondition(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\siteLanguageMatchesCondition(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\siteMatchesCondition(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\treeLevelConditionDoesNotMatchFaultyValue(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\treeLevelConditionMatchesMultipleValues(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\treeLevelConditionMatchesSingleValue(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionDoesNotMatchDefaultUserGroupIds(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionMatchesMultipleUserGroupId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionMatchesSingleGroupId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\workspaceIdConditionMatchesCurrentWorkspaceId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\workspaceIsLiveMatchesCorrectWorkspaceState(), and TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\workspaceIsOfflineMatchesCorrectWorkspaceState().

◆ loginUserConditionDoesNotMatchIfNotUserIsLoggedId()

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

◆ loginUserConditionMatchesAnyLoggedInUser()

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

◆ loginUserConditionMatchesMultipleLoggedInUsers()

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

◆ loginUserConditionMatchesSingleLoggedInUser()

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

◆ loginUserConditionMatchIfUserIsNotLoggedIn()

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

◆ pageLayoutIsResolvedCorrectlyFromBackendLayout()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageLayoutIsResolvedCorrectlyFromBackendLayout ( )
Test:
Todo:
‪: It would be good to have another FE related test that actively sets up a page tree and uses a condition like "[tree.pagelayout == "pagets__simple"]" to make sure the full FE processing chain including TS parsing kicks in properly.

Definition at line 540 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ pageLayoutIsResolvedCorrectlyFromBackendLayoutNextLevel()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageLayoutIsResolvedCorrectlyFromBackendLayoutNextLevel ( )
Test:
Todo:
‪: It would be good to have another FE related test that actively sets up a page tree and uses a condition like "[tree.pagelayout == "pagets__simple"]" to make sure the full FE processing chain including TS parsing kicks in properly.

Definition at line 510 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

◆ PIDinRootlineConditionMatchesLastPageIdInRootline()

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

◆ PIDinRootlineConditionMatchesSinglePageIdInRootline()

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

◆ PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline()

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

◆ PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

◆ PIDupinRootlineConditionMatchesSinglePageIdInRootline()

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

◆ setUp()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::setUp ( )
protected

◆ setupFrontendController()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::setupFrontendController ( int  $pageId)
protected

◆ setupFrontendUserContext()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::setupFrontendUserContext ( array  $groups = [])
protected

Definition at line 576 of file ConditionMatcherTest.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\frontendUserGroupInOperatorConditionMatchesGroupId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionDoesNotMatchIfNotUserIsLoggedId(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesAnyLoggedInUser(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesMultipleLoggedInUsers(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchesSingleLoggedInUser(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\loginUserConditionMatchIfUserIsNotLoggedIn(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionDoesNotMatchDefaultUserGroupIds(), TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionMatchesMultipleUserGroupId(), and TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\usergroupConditionMatchesSingleGroupId().

◆ setUpWorkspaceAspect()

◆ siteDoesNotMatchCondition()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::siteDoesNotMatchCondition ( )

◆ siteLanguageDoesNotMatchCondition()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::siteLanguageDoesNotMatchCondition ( )

Tests whether any property of a site language does NOT match the request

Test:

Definition at line 440 of file ConditionMatcherTest.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\getConditionMatcher().

◆ siteLanguageMatchesCondition()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::siteLanguageMatchesCondition ( )

◆ siteMatchesCondition()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::siteMatchesCondition ( )

◆ treeLevelConditionDoesNotMatchFaultyValue()

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

◆ treeLevelConditionMatchesMultipleValues()

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

◆ treeLevelConditionMatchesSingleValue()

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

◆ usergroupConditionDoesNotMatchDefaultUserGroupIds()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::usergroupConditionDoesNotMatchDefaultUserGroupIds ( )

◆ usergroupConditionMatchesMultipleUserGroupId()

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

◆ usergroupConditionMatchesSingleGroupId()

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

◆ workspaceIdConditionMatchesCurrentWorkspaceId()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::workspaceIdConditionMatchesCurrentWorkspaceId ( )

◆ workspaceIsLiveMatchesCorrectWorkspaceState()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::workspaceIsLiveMatchesCorrectWorkspaceState ( )

◆ workspaceIsOfflineMatchesCorrectWorkspaceState()

TYPO3\CMS\Frontend\Tests\FunctionalDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::workspaceIsOfflineMatchesCorrectWorkspaceState ( )