VoyagerRestfulTest
extends ILSDriverTestCase
in package
ILS driver test
Tags
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']]
$driver
ILS driver
protected
AbstractBase
$driver
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —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