VuFind API Documentation

VoyagerRestfulTest extends ILSDriverTestCase
in package

ILS driver test

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Main Page

Table of Contents

$defaultConfig  : array<string|int, mixed>
Default configuration for driver
$driver  : AbstractBase
ILS driver
setUp()  : void
Standard setup method.
testGetPickupLocationsConversion()  : void
Test encoding conversion in getPickupLocations()
testGetRequestGroupsConversion()  : void
Test encoding conversion in getRequestGroups()
testGetRequestGroupsDefaultBehavior()  : void
Test that request groups are disabled by default.
testMissingConfiguration()  : void
Test that driver complains about missing configuration.
getDriverWithMockSqlResponse()  : VoyagerRestful
Get a VoyagerRestful driver customized to return a mock SQL response.

Properties

$defaultConfig

Default configuration for driver

protected array<string|int, mixed> $defaultConfig = ['Catalog' => ['database' => 'foo'], 'WebServices' => ['host' => 'foo', 'port' => 1234, 'app' => 'bar', 'dbKey' => 'fake', 'patronHomeUbId' => 'baz']]

Methods

testGetPickupLocationsConversion()

Test encoding conversion in getPickupLocations()

public testGetPickupLocationsConversion() : void
Return values
void

testGetRequestGroupsConversion()

Test encoding conversion in getRequestGroups()

public testGetRequestGroupsConversion() : void
Return values
void

testGetRequestGroupsDefaultBehavior()

Test that request groups are disabled by default.

public testGetRequestGroupsDefaultBehavior() : void
Return values
void

testMissingConfiguration()

Test that driver complains about missing configuration.

public testMissingConfiguration() : void
Return values
void

getDriverWithMockSqlResponse()

Get a VoyagerRestful driver customized to return a mock SQL response.

protected getDriverWithMockSqlResponse(MockObject|PDOStatement $mockResult) : VoyagerRestful
Parameters
$mockResult : MockObject|PDOStatement

Mock result to return from executeSQL

Return values
VoyagerRestful

Search results