TYPO3 CMS  TYPO3_6-2
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

 setUp ()
 
 tearDown ()
 
 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 Attributes

 $defaultFilePermissions
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for

Author
Oliver Klee typo3.nosp@m.-cod.nosp@m.ing@o.nosp@m.live.nosp@m.rklee.nosp@m..de

Definition at line 22 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 470 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsFromStorageDataProvider()

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

Definition at line 328 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsFromStorageOverwritesDefaultPermissions()

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

Definition at line 435 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsGrantsAllPermissionsToAdminUsers()

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

Definition at line 652 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider()

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

Definition at line 243 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin()

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

Definition at line 636 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider()

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

Definition at line 501 of file BackendUserAuthenticationTest.php.

◆ getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin()

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

Definition at line 298 of file BackendUserAuthenticationTest.php.

◆ getTSConfigDataProvider()

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

Definition at line 91 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 232 of file BackendUserAuthenticationTest.php.

◆ logoffCleansFormProtectionIfBackendUserIsLoggedIn()

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

◆ setUp()

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

Definition at line 47 of file BackendUserAuthenticationTest.php.

References $GLOBALS.

◆ tearDown()

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

Member Data Documentation

◆ $defaultFilePermissions

TYPO3\CMS\Core\Tests\Unit\Authentication\BackendUserAuthenticationTest::$defaultFilePermissions
protected
Initial value:
= array(
'addFile' => FALSE,
'readFile' => FALSE,
'writeFile' => FALSE,
'copyFile' => FALSE,
'moveFile' => FALSE,
'renameFile' => FALSE,
'unzipFile' => FALSE,
'deleteFile' => FALSE,
'addFolder' => FALSE,
'readFolder' => FALSE,
'writeFolder' => FALSE,
'copyFolder' => FALSE,
'moveFolder' => FALSE,
'renameFolder' => FALSE,
'deleteFolder' => FALSE,
'recursivedeleteFolder' => FALSE
)

Definition at line 26 of file BackendUserAuthenticationTest.php.