VuFind API Documentation

ServerParamTest extends TestCase
in package

PermissionProvider ServerParam Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Bernd Oberknapp bo@ub.uni-freiburg.de

license

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

link

Wiki

Table of Contents

testArrayTrue()  : void
Test option array with matching string
testOptionNotFalse()  : void
Test option with not modifier and no matching header
testOptionNotRegexFalse()  : void
Test option with not regex modifier and no matching header
testOptionNotRegexTrue()  : void
Test option with not regex modifier and matching header
testOptionNotTrue()  : void
Test option with not modifier and matching header
testOptionRegexFalse()  : void
Test option with regex modifier and no matching header
testOptionRegexTrue()  : void
Test option with regex modifier and matching header
testOptionsAndFalse()  : void
Test multiple options with no matching header
testOptionsAndTrue()  : void
Test multiple options with matching headers
testOptionValuesOrFalse()  : void
Test option with multiple values and no matching header
testOptionValuesOrTrue()  : void
Test option with multiple values and matching header
testStringTrue()  : void
Test single option with matching string
checkServerParams()  : void
Setup request and header objects, run getPermissions and check the result

Methods

testArrayTrue()

Test option array with matching string

public testArrayTrue() : void
Return values
void

testOptionNotFalse()

Test option with not modifier and no matching header

public testOptionNotFalse() : void
Return values
void

testOptionNotRegexFalse()

Test option with not regex modifier and no matching header

public testOptionNotRegexFalse() : void
Return values
void

testOptionNotRegexTrue()

Test option with not regex modifier and matching header

public testOptionNotRegexTrue() : void
Return values
void

testOptionNotTrue()

Test option with not modifier and matching header

public testOptionNotTrue() : void
Return values
void

testOptionRegexFalse()

Test option with regex modifier and no matching header

public testOptionRegexFalse() : void
Return values
void

testOptionRegexTrue()

Test option with regex modifier and matching header

public testOptionRegexTrue() : void
Return values
void

testOptionsAndFalse()

Test multiple options with no matching header

public testOptionsAndFalse() : void
Return values
void

testOptionsAndTrue()

Test multiple options with matching headers

public testOptionsAndTrue() : void
Return values
void

testOptionValuesOrFalse()

Test option with multiple values and no matching header

public testOptionValuesOrFalse() : void
Return values
void

testOptionValuesOrTrue()

Test option with multiple values and matching header

public testOptionValuesOrTrue() : void
Return values
void

testStringTrue()

Test single option with matching string

public testStringTrue() : void
Return values
void

checkServerParams()

Setup request and header objects, run getPermissions and check the result

protected checkServerParams(array<string|int, mixed> $headers, mixed $options, array<string|int, mixed> $expectedResult) : void
Parameters
$headers : array<string|int, mixed>

Request headers

$options : mixed

options as from configuration

$expectedResult : array<string|int, mixed>

expected result returned by getPermissions

Return values
void

Search results