‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest:

Public Member Functions

 simulateDisabledMatchAllConditionsFailsOnFaultyExpression ()
 
 simulateEnabledMatchAllConditionsSucceeds ()
 
 simulateEnabledMatchSpecificConditionsSucceeds ()
 
 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 ()
 
 matchCallsTestConditionAndHandsOverParameters ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

array $rootline
 
TYPO3 CMS Backend Configuration TypoScript ConditionMatching ConditionMatcher $matchCondition
 
string $testGlobalNamespace
 
string $testTableName
 
bool $resetSingletonInstances = true
 

Private Member Functions

 setUpBackend ()
 
 setUpDatabaseMockForDeterminePageId ()
 

Detailed Description

Testcase for class \TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher.

Definition at line 35 of file ConditionMatcherTest.php.

Member Function Documentation

◆ adminUserConditionDoesNotMatchRegularUser()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionDoesNotMatchRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 289 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ adminUserConditionMatchesAdminUser()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionMatchesAdminUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 267 of file ConditionMatcherTest.php.

◆ adminUserConditionMatchesRegularUser()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::adminUserConditionMatchesRegularUser ( )

Tests whether checkinf for an admin user matches

Test:

Definition at line 277 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ compatVersionConditionDoesNotMatchNewerRelease()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 774 of file ConditionMatcherTest.php.

◆ compatVersionConditionMatchesOlderRelease()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 752 of file ConditionMatcherTest.php.

◆ compatVersionConditionMatchesSameRelease()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 763 of file ConditionMatcherTest.php.

◆ genericGetVariablesFailsWithNamespaceTSFE()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 798 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ genericGetVariablesSucceedsWithAnyGlobalNamespace()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithAnyGlobalNamespace ( )

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

Test:

Definition at line 835 of file ConditionMatcherTest.php.

References $GLOBALS, and TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\$testGlobalNamespace.

◆ genericGetVariablesSucceedsWithNamespaceENV()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceENV ( )

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

Test:

Definition at line 810 of file ConditionMatcherTest.php.

◆ genericGetVariablesSucceedsWithNamespaceGP()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceGP ( )

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

Test:

Definition at line 784 of file ConditionMatcherTest.php.

◆ genericGetVariablesSucceedsWithNamespaceIENV()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::genericGetVariablesSucceedsWithNamespaceIENV ( )

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

Test:

Definition at line 822 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesEmptyRegularExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesEmptyRegularExpression ( )

Tests whether string comparison matches.

Test:

Definition at line 504 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesOnEmptyExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 453 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalStringConditionMatchesOnEmptyLiteralExpressionWithValueSetToEmptyString ( )

Tests whether string comparison matches.

Test:

Definition at line 467 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesOnEqualExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 442 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesRegularExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 492 of file ConditionMatcherTest.php.

◆ globalStringConditionMatchesWildcardExpression()

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

Tests whether string comparison matches.

Test:

Definition at line 478 of file ConditionMatcherTest.php.

◆ globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero()

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

Tests whether numerical comparison matches.

Test:

Definition at line 428 of file ConditionMatcherTest.php.

◆ globalVarConditionDoesNotMatchOnNotEqualExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionDoesNotMatchOnNotEqualExpression ( )

Tests whether numerical comparison does not match.

Test:

Definition at line 345 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEmptyExpressionWithNoValueSet()

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

Tests whether numerical comparison matches.

Test:

Definition at line 416 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEqualExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::globalVarConditionMatchesOnEqualExpression ( )

Tests whether numerical comparison matches.

Test:

Definition at line 301 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 316 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 391 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnGreaterThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 403 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 366 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnLowerThanOrEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 378 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpression()

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

Tests whether numerical comparison matches.

Test:

Definition at line 333 of file ConditionMatcherTest.php.

◆ globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues()

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

Tests whether numerical comparison matches.

Test:

Definition at line 355 of file ConditionMatcherTest.php.

◆ languageConditionMatchesCompleteLanguagesExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesCompleteLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 195 of file ConditionMatcherTest.php.

◆ languageConditionMatchesMultipleLanguagesExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesMultipleLanguagesExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 183 of file ConditionMatcherTest.php.

◆ languageConditionMatchesSingleLanguageExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::languageConditionMatchesSingleLanguageExpression ( )

Tests whether the language comparison matches.

Test:

Definition at line 171 of file ConditionMatcherTest.php.

◆ loginUserConditionDoesNotMatchSingleLoggedInUser()

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

Tests whether user comparison matches.

Test:

Definition at line 246 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ loginUserConditionMatchesAnyLoggedInUser()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesAnyLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 226 of file ConditionMatcherTest.php.

◆ loginUserConditionMatchesMultipleLoggedInUsers()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesMultipleLoggedInUsers ( )

Tests whether user comparison matches.

Test:

Definition at line 257 of file ConditionMatcherTest.php.

◆ loginUserConditionMatchesSingleLoggedInUser()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::loginUserConditionMatchesSingleLoggedInUser ( )

Tests whether user comparison matches.

Test:

Definition at line 236 of file ConditionMatcherTest.php.

◆ matchCallsTestConditionAndHandsOverParameters()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::matchCallsTestConditionAndHandsOverParameters ( )
Test:

Definition at line 959 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCallingModuleWithPageTree()

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

Tests whether determining a pageId works.

Test:

Definition at line 850 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord ( )

◆ pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCopyingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 924 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCreatingARecord()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCreatingARecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 887 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord ( )

◆ pageIdCanBeDeterminedWhileDeletingAPageRecord()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileDeletingAPageRecord ( )

Tests whether determining a pageId works.

Test:

Definition at line 912 of file ConditionMatcherTest.php.

◆ pageIdCanBeDeterminedWhileEditingAPageRecord()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileEditingARegularRecord ( )

◆ pageIdCanBeDeterminedWhileMovingARecordToAnotherPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::pageIdCanBeDeterminedWhileMovingARecordToAnotherPage ( )

Tests whether determining a pageId works.

Test:

Definition at line 949 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionDoesNotMatchPageIdNotInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionDoesNotMatchPageIdNotInRootline ( )

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

Test:

Definition at line 739 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesLastPageIdInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesLastPageIdInRootline ( )

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

Test:

Definition at line 727 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesMultiplePageIdsInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesMultiplePageIdsInRootline ( )

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

Test:

Definition at line 715 of file ConditionMatcherTest.php.

◆ PIDinRootlineConditionMatchesSinglePageIdInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDinRootlineConditionMatchesSinglePageIdInRootline ( )

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

Test:

Definition at line 703 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionDoesNotMatchLastPageIdInRootline ( )

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

Test:

Definition at line 638 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionDoesNotMatchPageIdNotInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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.

◆ PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage ( )

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

Test:

Definition at line 650 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesCurrentPageIdWhileSavingNewPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 673 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ PIDupinRootlineConditionMatchesMultiplePageIdsInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesMultiplePageIdsInRootline ( )

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

Test:

Definition at line 614 of file ConditionMatcherTest.php.

◆ PIDupinRootlineConditionMatchesSinglePageIdInRootline()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::PIDupinRootlineConditionMatchesSinglePageIdInRootline ( )

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

Test:

Definition at line 602 of file ConditionMatcherTest.php.

◆ setUp()

◆ setUpBackend()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::setUpBackend ( )
private

◆ setUpDatabaseMockForDeterminePageId()

◆ simulateDisabledMatchAllConditionsFailsOnFaultyExpression()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateDisabledMatchAllConditionsFailsOnFaultyExpression ( )

Tests whether a faulty expression fails.

Test:

Definition at line 138 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchAllConditionsSucceeds()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateEnabledMatchAllConditionsSucceeds ( )

Tests whether simulating positive matches for all conditions succeeds.

Test:

Definition at line 148 of file ConditionMatcherTest.php.

◆ simulateEnabledMatchSpecificConditionsSucceeds()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::simulateEnabledMatchSpecificConditionsSucceeds ( )

Tests whether simulating positive matches for specific conditions succeeds.

Test:

Definition at line 159 of file ConditionMatcherTest.php.

◆ treeLevelConditionDoesNotMatchFaultyValue()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionDoesNotMatchFaultyValue ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 538 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage ( )

Tests whether treeLevel comparison matches when creating new pages.

Test:

Definition at line 549 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ treeLevelConditionMatchesCurrentPageIdWhileSavingNewPage()

TYPO3\CMS\Backend\Tests\UnitDeprecated\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 572 of file ConditionMatcherTest.php.

References $GLOBALS.

◆ treeLevelConditionMatchesMultipleValues()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::treeLevelConditionMatchesMultipleValues ( )

Tests whether treeLevel comparison matches.

Test:

Definition at line 527 of file ConditionMatcherTest.php.

◆ treeLevelConditionMatchesSingleValue()

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

Tests whether treeLevel comparison matches.

Test:

Definition at line 516 of file ConditionMatcherTest.php.

◆ usergroupConditionMatchesMultipleUserGroupId()

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

Tests whether usergroup comparison matches.

Test:

Definition at line 216 of file ConditionMatcherTest.php.

◆ usergroupConditionMatchesSingleGroupId()

TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::usergroupConditionMatchesSingleGroupId ( )

Tests whether usergroup comparison matches.

Test:

Definition at line 206 of file ConditionMatcherTest.php.

Member Data Documentation

◆ $matchCondition

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

Definition at line 43 of file ConditionMatcherTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::$resetSingletonInstances = true
protected

Reset singletons

Definition at line 55 of file ConditionMatcherTest.php.

◆ $rootline

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

Definition at line 39 of file ConditionMatcherTest.php.

◆ $testGlobalNamespace

string TYPO3\CMS\Backend\Tests\UnitDeprecated\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest::$testGlobalNamespace
protected

◆ $testTableName