VuFind API Documentation

PermissionManagerTest extends TestCase
in package

PermissionManager Test Class

Tags
category

VuFind

author

Oliver Goldschmidt o.goldschmidt@tuhh.de

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

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

testGrantedPermission()

Test a granted permission

public testGrantedPermission() : void
Return values
void

testNonExistentPermission()

Test a non existent permission section

public testNonExistentPermission() : void
Return values
void

Search results