‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest:

Public Member Functions

 logoffCleansFormProtectionIfBackendUserIsLoggedIn ()
 
 getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin (array $userTsConfiguration)
 
 getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin (string $permissionValue, array $expectedPermissions)
 
 getFilePermissionsGrantsAllPermissionsToAdminUsers ()
 
 jsConfirmationReturnsTrueIfPassedValueEqualsConfiguration ()
 
 jsConfirmationAllowsSettingMultipleBitsInValue ()
 
 jsConfirmationAllowsUnsettingBitsInValue (int $jsConfirmation, bool $typeChangeAllowed, bool $copyMovePasteAllowed, bool $deleteAllowed, bool $feEditAllowed, bool $otherAllowed)
 
 jsConfirmationAlwaysReturnsFalseIfNoConfirmationIsSet ()
 
 jsConfirmationReturnsTrueIfConfigurationIsMissing ()
 
 getPagePermissionsClauseWithValidUser (int $perms, bool $admin, array $groups, string $expected)
 
 checkAuthModeReturnsExpectedValue (string $theValue, bool $expectedResult)
 

Static Public Member Functions

static getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider ()
 
static getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider ()
 
static jsConfirmationsWithUnsetBits ()
 
static getPagePermissionsClauseWithValidUserDataProvider ()
 
static checkAuthModeReturnsExpectedValueDataProvider ()
 

Protected Attributes

bool $resetSingletonInstances = true
 

Detailed Description

Definition at line 47 of file BackendUserAuthenticationTest.php.

Member Function Documentation

◆ checkAuthModeReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::checkAuthModeReturnsExpectedValue ( string  $theValue,
bool  $expectedResult 
)

Definition at line 540 of file BackendUserAuthenticationTest.php.

◆ checkAuthModeReturnsExpectedValueDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::checkAuthModeReturnsExpectedValueDataProvider ( )
static

Definition at line 559 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsGrantsAllPermissionsToAdminUsers()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsGrantsAllPermissionsToAdminUsers ( )

Definition at line 330 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider ( )
static

Definition at line 103 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin ( string  $permissionValue,
array  $expectedPermissions 
)

Definition at line 312 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider ( )
static

Definition at line 204 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin ( array  $userTsConfiguration)

Definition at line 154 of file BackendUserAuthenticationTest.php.

◆ getPagePermissionsClauseWithValidUser()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getPagePermissionsClauseWithValidUser ( int  $perms,
bool  $admin,
array  $groups,
string  $expected 
)

◆ getPagePermissionsClauseWithValidUserDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getPagePermissionsClauseWithValidUserDataProvider ( )
static

Data provider to test page permissions constraints returns an array of test conditions:

  • ‪permission bit(s) as integer
  • ‪admin flag
  • ‪groups for user
  • ‪expected SQL fragment

Definition at line 465 of file BackendUserAuthenticationTest.php.

◆ jsConfirmationAllowsSettingMultipleBitsInValue()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationAllowsSettingMultipleBitsInValue ( )

◆ jsConfirmationAllowsUnsettingBitsInValue()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationAllowsUnsettingBitsInValue ( int  $jsConfirmation,
bool  $typeChangeAllowed,
bool  $copyMovePasteAllowed,
bool  $deleteAllowed,
bool  $feEditAllowed,
bool  $otherAllowed 
)

◆ jsConfirmationAlwaysReturnsFalseIfNoConfirmationIsSet()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationAlwaysReturnsFalseIfNoConfirmationIsSet ( )

◆ jsConfirmationReturnsTrueIfConfigurationIsMissing()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationReturnsTrueIfConfigurationIsMissing ( )

◆ jsConfirmationReturnsTrueIfPassedValueEqualsConfiguration()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationReturnsTrueIfPassedValueEqualsConfiguration ( )

◆ jsConfirmationsWithUnsetBits()

static TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::jsConfirmationsWithUnsetBits ( )
static

Definition at line 410 of file BackendUserAuthenticationTest.php.

◆ logoffCleansFormProtectionIfBackendUserIsLoggedIn()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::logoffCleansFormProtectionIfBackendUserIsLoggedIn ( )

Definition at line 52 of file BackendUserAuthenticationTest.php.

References $GLOBALS.

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::$resetSingletonInstances = true
protected

Definition at line 49 of file BackendUserAuthenticationTest.php.