VuFind API Documentation

DatabasesTest extends TestCase
in package

Databases Test Class

Tags
category

VuFind

author

Maccabee Levine msl321@lehigh.edu

license

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

link

Wiki

Table of Contents

testDontUseQuery()  : void
Test setting useQuery to false.
testEmptyConfig()  : void
Test forgetting the Databases config section.
testNormal()  : void
Test a default config.
testUseLibGuides()  : void
Test setting useLibGuides to true.
testUseLibGuidesWithAlternateName()  : void
Test using LibGuides with a query that matches an alternate name.
testUseLibGuidesWithAlternateNameDisabled()  : void
Test using LibGuides with a query that matches an alternate name, but that config disabled.
buildModuleAndProcessResults()  : object
Build a Databases module, set config and process results.
mockConfigData()  : array<string|int, mixed>
Mock up a standard Databases config section.
mockFacetList()  : array<string|int, mixed>
Mock up a results facet list.
mockLibGuidesData()  : array<string|int, mixed>
Mock up LibGuides API databases data.
mockResults()  : object
Mock up search results.

Methods

testDontUseQuery()

Test setting useQuery to false.

public testDontUseQuery() : void
Return values
void

testEmptyConfig()

Test forgetting the Databases config section.

public testEmptyConfig() : void
Return values
void

testNormal()

Test a default config.

public testNormal() : void
Return values
void

testUseLibGuides()

Test setting useLibGuides to true.

public testUseLibGuides() : void
Return values
void

testUseLibGuidesWithAlternateName()

Test using LibGuides with a query that matches an alternate name.

public testUseLibGuidesWithAlternateName() : void
Return values
void

testUseLibGuidesWithAlternateNameDisabled()

Test using LibGuides with a query that matches an alternate name, but that config disabled.

public testUseLibGuidesWithAlternateNameDisabled() : void
Return values
void

buildModuleAndProcessResults()

Build a Databases module, set config and process results.

protected buildModuleAndProcessResults( $configData[,  $queryString = 'History' ]) : object
Parameters
$configData :

array A Databases config section

$queryString : = 'History'

string Query string

Return values
object

mockConfigData()

Mock up a standard Databases config section.

protected mockConfigData() : array<string|int, mixed>
Return values
array<string|int, mixed>

mockFacetList()

Mock up a results facet list.

protected mockFacetList() : array<string|int, mixed>
Return values
array<string|int, mixed>

mockLibGuidesData()

Mock up LibGuides API databases data.

protected mockLibGuidesData() : array<string|int, mixed>
Return values
array<string|int, mixed>

mockResults()

Mock up search results.

protected mockResults( $facetList,  $queryString) : object
Parameters
$facetList :

array Result facets

$queryString :

string Query string

Return values
object

Search results