TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 logoffCleansFormProtectionIfBackendUserIsLoggedIn ()
 
 getTSConfigDataProvider ()
 
 getTSConfigReturnsCorrectArrayForGivenObjectString (array $completeConfiguration, $objectString, array $expectedConfiguration)
 
 getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider ()
 
 getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin (array $userTsConfiguration)
 
 getFilePermissionsFromStorageDataProvider ()
 
 getFilePermissionsFromStorageOverwritesDefaultPermissions (array $defaultPermissions, $storageUid, array $storagePermissions, array $expectedPermissions)
 
 getFilePermissionsFromStorageAlwaysReturnsDefaultPermissionsForAdmins (array $defaultPermissions, $storageUid, array $storagePermissions)
 
 getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider ()
 
 getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin ($permissionValue, $expectedPermissions)
 
 getFilePermissionsGrantsAllPermissionsToAdminUsers ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $defaultFilePermissions
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for

Definition at line 20 of file BackendUserAuthenticationTest.php.

Member Function Documentation

◆ getFilePermissionsFromStorageAlwaysReturnsDefaultPermissionsForAdmins()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsFromStorageAlwaysReturnsDefaultPermissionsForAdmins ( array  $defaultPermissions,
  $storageUid,
array  $storagePermissions 
)
Parameters
array$defaultPermissions
$storageUid
array$storagePermissions
Test:
getFilePermissionsFromStorageDataProvider

Definition at line 478 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsFromStorageDataProvider()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsFromStorageDataProvider ( )
Returns
array

Definition at line 334 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsFromStorageOverwritesDefaultPermissions()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getFilePermissionsFromStorageOverwritesDefaultPermissions ( array  $defaultPermissions,
  $storageUid,
array  $storagePermissions,
array  $expectedPermissions 
)
Parameters
array$defaultPermissions
int$storageUid
array$storagePermissions
array$expectedPermissions
Test:
getFilePermissionsFromStorageDataProvider

Definition at line 442 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsGrantsAllPermissionsToAdminUsers()

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

Definition at line 663 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider()

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

Definition at line 247 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin()

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

Definition at line 646 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider()

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

Definition at line 510 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin()

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

Definition at line 303 of file BackendUserAuthenticationTest.php.

◆ getTSConfigDataProvider()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getTSConfigDataProvider ( )
Returns
array

Definition at line 93 of file BackendUserAuthenticationTest.php.

◆ getTSConfigReturnsCorrectArrayForGivenObjectString()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::getTSConfigReturnsCorrectArrayForGivenObjectString ( array  $completeConfiguration,
  $objectString,
array  $expectedConfiguration 
)
Parameters
array$completeConfiguration
string$objectString
array$expectedConfigurationgetTSConfigDataProvider
Test:

Definition at line 235 of file BackendUserAuthenticationTest.php.

◆ logoffCleansFormProtectionIfBackendUserIsLoggedIn()

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

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::setUp ( )
protected

Definition at line 46 of file BackendUserAuthenticationTest.php.

References $GLOBALS.

◆ tearDown()

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::tearDown ( )
protected

Member Data Documentation

◆ $defaultFilePermissions

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::$defaultFilePermissions
protected
Initial value:
= [
'addFile' => false

Definition at line 25 of file BackendUserAuthenticationTest.php.