DatabasesTest
extends TestCase
in package
Databases Test Class
Tags
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
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