PermissionTest PermissionTest(
$methodName
)
|
|
Parameters:
Create nested albums that only have core.canChangePermissions that we can use for testing.
Redefinition of:
- GalleryTestCase::setUp()
void testAddAndRemoveUserAndGroupPermission(
)
|
|
Add and remove some user and group permissions and test retrieving them.
This covers: GalleryCoreApi::addUserPermission GalleryCoreApi::addGroupPermission GalleryCoreApi::addEntityPermission GalleryCoreApi::removeUserPermission GalleryCoreApi::removeGroupPermission GalleryCoreApi::removeEntityPermission GalleryCoreApi::fetchAllPermissionsForItem And that the correct events are posted (ViewableTreeChange, RemovePermission)
void testAddPermissionToEntityWithoutPermissions(
)
|
|
void testAddPermissionToSession(
)
|
|
void testCompactAccessLists(
)
|
|
void testCopyPermissions(
)
|
|
Test copying permissions from one item to another This covers:
GalleryCoreApi::addUserPermission GalleryCoreApi::fetchPermissionsForItems
void testFetchAccessListIds(
)
|
|
void testFetchAccessListIdsForArrayMiss(
)
|
|
void testFetchAccessListIdsForArrayWithFourPermissions(
)
|
|
void testFetchAccessListIdsForArrayWithSinglePermission(
)
|
|
void testFetchAccessListIdsForArrayWithTwoPermissions(
)
|
|
void testFetchPermissionsForItems(
)
|
|
Test getting permissions for a non activeUser This covers:
GalleryCoreApi::addUserPermission GalleryCoreApi::fetchPermissionsForItems
void testFetchPermissionsForItemsCache(
)
|
|
void testFetchPermissionsForItemsForOtherUserId(
)
|
|
void testGetPermissions(
)
|
|
void testHasItemPermission(
)
|
|
void testHasItemPermissionChecksPermissionCache(
)
|
|
void testHasPermission(
)
|
|
Test copying permissions from one item to another This covers:
GalleryCoreApi::addUserPermission GalleryCoreApi::addGroupPermission GalleryCoreApi::hasPermission
void testRecursiveRemove(
)
|
|
void testRemoveItemPermissions(
)
|
|
void _prepareForFetchAccessListIds(
)
|
|
void _sortPermissions(
$a,
$b
)
|
|
Sort permissions by group, user then permission name
Parameters:
API Tags: