VuFind API Documentation

ConsortialVuFindTest extends TestCase
in package
Uses FixtureTrait

ConsortialVuFind recommendation module Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Maccabee Levine msl321@lehigh.edu

license

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

link

Wiki

Table of Contents

$connector  : ExternalVuFind
ExternalVuFind connection object
$consortialVuFind  : ConsortialVuFind
ConsortialVuFind object
setUp()  : void
Set up mocks for tests.
testGetMoreResultsUrl()  : void
Test the getMoreResultsUrl function
testGetResults()  : void
Test the getResults function
buildConfig()  : ConsortialVuFind
Build an object representing an ExternalVuFind.ini configuration file
buildConsortialVuFind()  : ConsortialVuFind
Build and pre-process a ConsortialVuFind object
buildQueryResults()  : Results
Build a partially mocked Results object for a given query string
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).

Properties

Methods

testGetMoreResultsUrl()

Test the getMoreResultsUrl function

public testGetMoreResultsUrl() : void
Return values
void

testGetResults()

Test the getResults function

public testGetResults() : void
Return values
void

buildQueryResults()

Build a partially mocked Results object for a given query string

protected buildQueryResults(string $queryString[, array<string|int, mixed> $facets = [] ]) : Results
Parameters
$queryString : string

The query string

$facets : array<string|int, mixed> = []

The result facets

Return values
Results

The Results object

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>

Search results