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

Public Member Functions

 addDataSetsUserPermissionsOnPageForAdminUser ()
 
 addDataThrowsExceptionIfUserHasNoTablesModifyPermissionForGivenTable ()
 
 addDataThrowsExceptionIfUserHasNoContentEditPermissionsOnPage ()
 
 addDataAddsUserPermissionsOnPageForContentIfUserHasCorrespondingPermissions ()
 
 addDataThrowsExceptionIfCommandIsEditTableIsPagesAndUserHasNoPagePermissions ()
 
 addDataAddsUserPermissionsOnPageIfTableIsPagesAndUserHasPagePermissions ()
 
 addDataSetsPermissionsToAllIfRootLevelRestrictionForTableIsIgnoredForContentEditRecord ()
 
 addDataThrowsExceptionIfRootNodeShouldBeEditedWithoutPermissions ()
 
 addDataThrowsExceptionIfRecordEditAccessInternalsReturnsFalse ()
 
 addDataThrowsExceptionForNewContentRecordWithoutPermissions ()
 
 addDataThrowsExceptionForNewPageWithoutPermissions ()
 
 addDataThrowsExceptionIfHookDeniesAccess ()
 
 addDataSetsUserPermissionsOnPageForNewPageIfPageNewIsDeniedAndHookAllowsAccess ()
 
 addDataSetsUserPermissionsOnPageForNewPage ()
 
 addDataSetsUserPermissionsOnPageForNewContentRecord ()
 
 addDataSetsPermissionsToAllIfRootLevelRestrictionForTableIsIgnoredForNewContentRecord ()
 
 addDataThrowsExceptionForNewRecordsOnRootLevelWithoutPermissions ()
 

Protected Member Functions

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

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

Detailed Description

Test case

Definition at line 34 of file DatabaseUserPermissionCheckTest.php.

Member Function Documentation

addDataAddsUserPermissionsOnPageForContentIfUserHasCorrespondingPermissions ( )
Test:

Definition at line 110 of file DatabaseUserPermissionCheckTest.php.

References Permission\CONTENT_EDIT.

addDataAddsUserPermissionsOnPageIfTableIsPagesAndUserHasPagePermissions ( )
Test:

Definition at line 157 of file DatabaseUserPermissionCheckTest.php.

References Permission\PAGE_EDIT.

addDataSetsPermissionsToAllIfRootLevelRestrictionForTableIsIgnoredForContentEditRecord ( )
Test:

Definition at line 181 of file DatabaseUserPermissionCheckTest.php.

References $GLOBALS, and Permission\ALL.

addDataSetsPermissionsToAllIfRootLevelRestrictionForTableIsIgnoredForNewContentRecord ( )
Test:

Definition at line 411 of file DatabaseUserPermissionCheckTest.php.

References $GLOBALS, and Permission\ALL.

addDataSetsUserPermissionsOnPageForAdminUser ( )
Test:

Definition at line 58 of file DatabaseUserPermissionCheckTest.php.

References Permission\ALL.

addDataSetsUserPermissionsOnPageForNewContentRecord ( )
Test:

Definition at line 387 of file DatabaseUserPermissionCheckTest.php.

References Permission\CONTENT_EDIT.

addDataSetsUserPermissionsOnPageForNewPage ( )
Test:

Definition at line 363 of file DatabaseUserPermissionCheckTest.php.

References Permission\PAGE_NEW.

addDataSetsUserPermissionsOnPageForNewPageIfPageNewIsDeniedAndHookAllowsAccess ( )
Test:

Definition at line 333 of file DatabaseUserPermissionCheckTest.php.

References $GLOBALS, and Permission\CONTENT_EDIT.

addDataThrowsExceptionForNewContentRecordWithoutPermissions ( )
Test:

Definition at line 254 of file DatabaseUserPermissionCheckTest.php.

References Permission\NOTHING.

addDataThrowsExceptionForNewPageWithoutPermissions ( )
Test:

Definition at line 278 of file DatabaseUserPermissionCheckTest.php.

References Permission\NOTHING.

addDataThrowsExceptionForNewRecordsOnRootLevelWithoutPermissions ( )
Test:

Definition at line 432 of file DatabaseUserPermissionCheckTest.php.

addDataThrowsExceptionIfCommandIsEditTableIsPagesAndUserHasNoPagePermissions ( )
Test:

Definition at line 133 of file DatabaseUserPermissionCheckTest.php.

References Permission\NOTHING.

addDataThrowsExceptionIfHookDeniesAccess ( )
Test:

Definition at line 302 of file DatabaseUserPermissionCheckTest.php.

References $GLOBALS, and Permission\ALL.

addDataThrowsExceptionIfRecordEditAccessInternalsReturnsFalse ( )
Test:

Definition at line 229 of file DatabaseUserPermissionCheckTest.php.

References Permission\ALL.

addDataThrowsExceptionIfRootNodeShouldBeEditedWithoutPermissions ( )
Test:

Definition at line 205 of file DatabaseUserPermissionCheckTest.php.

addDataThrowsExceptionIfUserHasNoContentEditPermissionsOnPage ( )
Test:

Definition at line 87 of file DatabaseUserPermissionCheckTest.php.

References Permission\NOTHING.

addDataThrowsExceptionIfUserHasNoTablesModifyPermissionForGivenTable ( )
Test:

Definition at line 70 of file DatabaseUserPermissionCheckTest.php.

setUp ( )
protected

Definition at line 46 of file DatabaseUserPermissionCheckTest.php.

References $GLOBALS.

Member Data Documentation

$beUserProphecy
protected

Definition at line 44 of file DatabaseUserPermissionCheckTest.php.

$subject
protected

Definition at line 39 of file DatabaseUserPermissionCheckTest.php.