VuFind API Documentation

SolrMarcRemoteTest extends TestCase
in package
Uses FixtureTrait

SolrMarcRemote Record Driver Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Table of Contents

testMissingRecordId()  : void
Test record ID validation (a record with no ID cannot be resolved).
testRecordRetrieval()  : void
Test actually retrieving a record.
testRequiredConfigException()  : void
Test config validation.
getDriver()  : SolrMarcRemote
Get a SolrMarcRemote driver preconfigured to load a record.
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).
getMockHttpService()  : HttpServiceInterface
Get a mock HttpService for testing

Methods

testMissingRecordId()

Test record ID validation (a record with no ID cannot be resolved).

public testMissingRecordId() : void
Return values
void

testRecordRetrieval()

Test actually retrieving a record.

public testRecordRetrieval() : void
Return values
void

testRequiredConfigException()

Test config validation.

public testRequiredConfigException() : 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
throws
RuntimeException
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
throws
RuntimeException
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>

getMockHttpService()

Get a mock HttpService for testing

protected getMockHttpService() : HttpServiceInterface
Return values
HttpServiceInterface

Search results