VuFind API Documentation

PermissionDeniedManagerTest 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

$permissionDeniedConfig  : array<string|int, mixed>
Sample configuration with various config options.
testEmptyConfig()  : void
Test an empty permission section getDeniedControllerBehavior should return false as the PermissionDeniedManager has nothing to do
testExceptionConfig()  : void
Test a correctly configured exception
testNonExistentConfig()  : void
Test a non existent permission section getDeniedControllerBehavior should return false as the PermissionDeniedManager has nothing to do
testTemplateConfig()  : void
Test a correctly configured template

Properties

$permissionDeniedConfig

Sample configuration with various config options.

protected array<string|int, mixed> $permissionDeniedConfig = ['permissionDeniedTemplate' => ['deniedTemplateBehavior' => 'showTemplate:record/displayLogicTest:param1=noValue', 'deniedControllerBehavior' => 'showTemplate:record/ActionTest:param1=noValue'], 'permissionDeniedTemplateNoParams' => ['deniedTemplateBehavior' => 'showTemplate:record/displayLogicTest', 'deniedControllerBehavior' => 'showTemplate:record/ActionTest'], 'permissionDeniedMessage' => ['deniedTemplateBehavior' => 'showMessage:dl_translatable_test', 'deniedControllerBehavior' => 'showTemplate:action_translatable_test'], 'permissionDeniedLogin' => ['deniedControllerBehavior' => 'promptLogin'], 'permissionDeniedException' => ['deniedControllerBehavior' => 'exception:ForbiddenException:exception_message'], 'permissionDeniedNonExistentException' => ['deniedControllerBehavior' => 'exception:NonExistentException:exception_message'], 'permissionDeniedNothing' => []]

Methods

testEmptyConfig()

Test an empty permission section getDeniedControllerBehavior should return false as the PermissionDeniedManager has nothing to do

public testEmptyConfig() : void
Return values
void

testExceptionConfig()

Test a correctly configured exception

public testExceptionConfig() : void
Return values
void

testNonExistentConfig()

Test a non existent permission section getDeniedControllerBehavior should return false as the PermissionDeniedManager has nothing to do

public testNonExistentConfig() : void
Return values
void

Search results