‪TYPO3CMS  11.5
TYPO3\CMS\Frontend\Tests\Functional\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Functional\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 ()
 
ConditionMatcher getConditionMatcher ()
 
 setupFrontendUserContext (array $groups=[])
 
 setUpWorkspaceAspect (int $workspaceId)
 
 setupFrontendController (int $pageId)
 

Detailed Description

Functional test for the ConditionMatcher of EXT:frontend

Definition at line 43 of file ConditionMatcherTest.php.

Member Function Documentation

◆ backendUserGroupInOperatorConditionMatchesGroupId()

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

◆ compatVersionConditionDoesNotMatchNewerRelease()

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

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

◆ compatVersionConditionMatchesOlderRelease()

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

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

◆ compatVersionConditionMatchesSameRelease()

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

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

◆ frontendUserGroupInOperatorConditionMatchesGroupId()

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

◆ genericGetVariablesSucceedsWithNamespaceENV()

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

◆ genericGetVariablesSucceedsWithNamespaceSession()

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

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

Test:

Definition at line 394 of file ConditionMatcherTest.php.

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

◆ genericGetVariablesSucceedsWithNamespaceTSFE()

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

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

Test:

Definition at line 381 of file ConditionMatcherTest.php.

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

◆ getConditionMatcher()

ConditionMatcher TYPO3\CMS\Frontend\Tests\Functional\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::getConditionMatcher ( )
protected
Returns
‪ConditionMatcher

Definition at line 572 of file ConditionMatcherTest.php.

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

◆ loginUserConditionDoesNotMatchIfNotUserIsLoggedId()

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

◆ loginUserConditionMatchesAnyLoggedInUser()

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

◆ loginUserConditionMatchesMultipleLoggedInUsers()

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

◆ loginUserConditionMatchesSingleLoggedInUser()

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

◆ loginUserConditionMatchIfUserIsNotLoggedIn()

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

◆ pageLayoutIsResolvedCorrectlyFromBackendLayout()

TYPO3\CMS\Frontend\Tests\Functional\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageLayoutIsResolvedCorrectlyFromBackendLayout ( )
Test:

Definition at line 541 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ pageLayoutIsResolvedCorrectlyFromBackendLayoutNextLevel()

TYPO3\CMS\Frontend\Tests\Functional\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageLayoutIsResolvedCorrectlyFromBackendLayoutNextLevel ( )
Test:

Definition at line 514 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

◆ PIDinRootlineConditionMatchesLastPageIdInRootline()

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

◆ PIDinRootlineConditionMatchesSinglePageIdInRootline()

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

◆ PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline()

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

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

Test:

Definition at line 292 of file ConditionMatcherTest.php.

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

◆ PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline()

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

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

Test:

Definition at line 302 of file ConditionMatcherTest.php.

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

◆ PIDupinRootlineConditionMatchesSinglePageIdInRootline()

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

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

Test:

Definition at line 279 of file ConditionMatcherTest.php.

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

◆ setUp()

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

◆ setupFrontendController()

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

◆ setupFrontendUserContext()

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

◆ setUpWorkspaceAspect()

◆ siteDoesNotMatchCondition()

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

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

Test:

Definition at line 489 of file ConditionMatcherTest.php.

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

◆ siteLanguageDoesNotMatchCondition()

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

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

Test:

Definition at line 447 of file ConditionMatcherTest.php.

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

◆ siteLanguageMatchesCondition()

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

Tests whether any property of a site language matches the request

Test:

Definition at line 420 of file ConditionMatcherTest.php.

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

◆ siteMatchesCondition()

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

◆ treeLevelConditionDoesNotMatchFaultyValue()

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

◆ treeLevelConditionMatchesMultipleValues()

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

◆ treeLevelConditionMatchesSingleValue()

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

◆ usergroupConditionDoesNotMatchDefaultUserGroupIds()

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

◆ usergroupConditionMatchesMultipleUserGroupId()

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

◆ usergroupConditionMatchesSingleGroupId()

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

◆ workspaceIdConditionMatchesCurrentWorkspaceId()

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

◆ workspaceIsLiveMatchesCorrectWorkspaceState()

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

◆ workspaceIsOfflineMatchesCorrectWorkspaceState()

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