TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
BackendUserAuthenticationTest Class Reference
Inheritance diagram for BackendUserAuthenticationTest:
UnitTestCase BaseTestCase

Public Member Functions

 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 ()
 
 jsConfirmationReturnsTrueIfPassedValueEqualsConfiguration ()
 
 jsConfirmationAllowsSettingMultipleBitsInValue ()
 
 jsConfirmationAlwaysReturnsFalseIfNoConfirmationIsSet ()
 
 jsConfirmationReturnsTrueIfConfigurationIsMissing ()
 
 getPagePermissionsClauseWithValidUserDataProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

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

Detailed Description

Testcase for BackendUserAuthentication

Definition at line 31 of file BackendUserAuthenticationTest.php.

Member Function Documentation

getFilePermissionsFromStorageAlwaysReturnsDefaultPermissionsForAdmins ( array  $defaultPermissions,
  $storageUid,
array  $storagePermissions 
)
Parameters
array$defaultPermissions
$storageUid
array$storagePermissions
Test:
getFilePermissionsFromStorageDataProvider

Definition at line 506 of file BackendUserAuthenticationTest.php.

getFilePermissionsFromStorageDataProvider ( )
Returns
array

Definition at line 364 of file BackendUserAuthenticationTest.php.

getFilePermissionsFromStorageOverwritesDefaultPermissions ( array  $defaultPermissions,
  $storageUid,
array  $storagePermissions,
array  $expectedPermissions 
)
Parameters
array$defaultPermissions
int$storageUid
array$storagePermissions
array$expectedPermissions
Test:
getFilePermissionsFromStorageDataProvider

Definition at line 468 of file BackendUserAuthenticationTest.php.

getFilePermissionsGrantsAllPermissionsToAdminUsers ( )
Test:

Definition at line 669 of file BackendUserAuthenticationTest.php.

getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider ( )
Returns
array

Definition at line 277 of file BackendUserAuthenticationTest.php.

getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdmin (   $permissionValue,
  $expectedPermissions 
)
Test:
getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider

Definition at line 650 of file BackendUserAuthenticationTest.php.

getFilePermissionsTakesUserDefaultPermissionsFromRecordIntoAccountIfUserIsNotAdminDataProvider ( )
Returns
array

Definition at line 540 of file BackendUserAuthenticationTest.php.

getFilePermissionsTakesUserDefaultPermissionsFromTsConfigIntoAccountIfUserIsNotAdmin ( array  $userTsConfiguration)
Parameters
array$userTsConfiguration
Test:
getFilePermissionsTakesUserDefaultAndStoragePermissionsIntoAccountIfUserIsNotAdminDataProvider

Definition at line 331 of file BackendUserAuthenticationTest.php.

getPagePermissionsClauseWithValidUserDataProvider ( )

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
Returns
array

Definition at line 765 of file BackendUserAuthenticationTest.php.

getTSConfigDataProvider ( )
Returns
array

Definition at line 120 of file BackendUserAuthenticationTest.php.

getTSConfigReturnsCorrectArrayForGivenObjectString ( array  $completeConfiguration,
  $objectString,
array  $expectedConfiguration 
)
Parameters
array$completeConfiguration
string$objectString
array$expectedConfigurationgetTSConfigDataProvider
Test:

Definition at line 262 of file BackendUserAuthenticationTest.php.

jsConfirmationAllowsSettingMultipleBitsInValue ( )
jsConfirmationAlwaysReturnsFalseIfNoConfirmationIsSet ( )
jsConfirmationReturnsTrueIfConfigurationIsMissing ( )
Test:

Definition at line 746 of file BackendUserAuthenticationTest.php.

References JsConfirmation\TYPE_CHANGE.

jsConfirmationReturnsTrueIfPassedValueEqualsConfiguration ( )
setUp ( )
protected

Definition at line 56 of file BackendUserAuthenticationTest.php.

References $GLOBALS.

tearDown ( )
protected

Member Data Documentation

$defaultFilePermissions
protected
Initial value:
= [
'addFile' => false

Definition at line 36 of file BackendUserAuthenticationTest.php.