AlephTest
extends ILSDriverTestCase
in package
Uses
FixtureTrait
Aleph ILS driver test
Tags
Table of Contents
- $driver : AbstractBase
- ILS driver
- setUp() : void
- Standard setup method.
- testGetMyFines() : void
- Test the getMyFines() method
- testMissingConfiguration() : void
- Test that driver complains about missing configuration.
- getFixture() : string
- Load a fixture file.
- getFixtureDir() : string
- Get the base directory containing fixtures.
- getFixturePath() : string
- Resolve fixture path.
- getJsonFixture() : array<string|int, mixed>
- Load a JSON fixture from file (using associative array return type).
- loadResponse() : Response
- Load response from file
- mockResponse() : void
- Mock fixture as HTTP client response
Properties
$driver
ILS driver
protected
AbstractBase
$driver
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —testGetMyFines()
Test the getMyFines() method
public
testGetMyFines() : void
Return values
void —testMissingConfiguration()
Test that driver complains about missing configuration.
public
testMissingConfiguration() : void
Return values
void —getFixture()
Load a fixture file.
protected
getFixture(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getFixtureDir()
Get the base directory containing fixtures.
protected
getFixtureDir([string $module = 'VuFind' ]) : string
Parameters
- $module : string = 'VuFind'
-
Module containing fixture.
Return values
string —getFixturePath()
Resolve fixture path.
protected
getFixturePath(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getJsonFixture()
Load a JSON fixture from file (using associative array return type).
protected
getJsonFixture(string $filename[, string $module = 'VuFind' ]) : array<string|int, mixed>
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Return values
array<string|int, mixed> —loadResponse()
Load response from file
protected
loadResponse(string $filename) : Response
Parameters
- $filename : string
-
File name of raw HTTP response
Tags
Return values
Response —Response object
mockResponse()
Mock fixture as HTTP client response
protected
mockResponse([string|array<string|int, mixed>|null $fixture = null ]) : void
Parameters
- $fixture : string|array<string|int, mixed>|null = null
-
Fixture file