PermissionManagerTest
extends TestCase
in package
PermissionManager Test Class
Tags
Table of Contents
- $permissionConfig : array<string|int, mixed>
- Sample configuration with various config options.
- testDeniedPermission() : void
- Test a denied permission
- testExistentPermission() : void
- Test an existing permission section
- testExistentPermissionInArray() : void
- Test an existing permission section in an array
- testGetAllConfiguredPermissions() : void
- Test getAllConfiguredPermissions()
- testGrantedPermission() : void
- Test a granted permission
- testNonExistentPermission() : void
- Test a non existent permission section
Properties
$permissionConfig
Sample configuration with various config options.
protected
array<string|int, mixed>
$permissionConfig
= ['permission.all' => ['permission' => 'everyone'], 'permission.nobody' => ['permission' => 'nobody'], 'permission.empty' => [], 'permission.array' => ['permission' => ['everyoneArray', 'everyoneArray2']]]
Methods
testDeniedPermission()
Test a denied permission
public
testDeniedPermission() : void
Return values
void —testExistentPermission()
Test an existing permission section
public
testExistentPermission() : void
Return values
void —testExistentPermissionInArray()
Test an existing permission section in an array
public
testExistentPermissionInArray() : void
Return values
void —testGetAllConfiguredPermissions()
Test getAllConfiguredPermissions()
public
testGetAllConfiguredPermissions() : void
Return values
void —testGrantedPermission()
Test a granted permission
public
testGrantedPermission() : void
Return values
void —testNonExistentPermission()
Test a non existent permission section
public
testNonExistentPermission() : void