‪TYPO3CMS  10.4
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 ()
 
 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 ()
 

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

Member Function Documentation

◆ 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 336 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 311 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 325 of file ConditionMatcherTest.php.

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

◆ 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 365 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 349 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 485 of file ConditionMatcherTest.php.

Referenced by 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\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 ( )

◆ 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 260 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 270 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 247 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()

◆ 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 460 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 418 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 391 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 ( )