VuFind API Documentation

SolrAuthTest extends TestCase
in package
Uses LiveDetectionTrait, LiveSolrTrait

Solr Auth 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

$hasLiveDetectionTrait  : bool
Flag to allow other traits to test for the presence of this one (to enforce dependencies).
$liveSolrContainer  : MockContainer
Container for services related to live Solr connectivity.
continuousIntegrationRunning()  : bool
Is this test running in a continuous integration context?
setUp()  : void
Standard setup method.
testSimpleSearch()  : void
Check that we can find a record in the authority core.
createLiveSolrContainer()  : MockContainer
Create and populate container for services related to live Solr connectivity.
getBackend()  : object
Get a search backend
getLiveSolrContainer()  : MockContainer
Get container for services related to live Solr connectivity.
getResultsObject()  : Results
Get a search results object

Properties

$hasLiveDetectionTrait

Flag to allow other traits to test for the presence of this one (to enforce dependencies).

public bool $hasLiveDetectionTrait = true

$liveSolrContainer

Container for services related to live Solr connectivity.

protected MockContainer $liveSolrContainer = null

Methods

continuousIntegrationRunning()

Is this test running in a continuous integration context?

public continuousIntegrationRunning() : bool
Return values
bool

setUp()

Standard setup method.

public setUp() : void
Return values
void

testSimpleSearch()

Check that we can find a record in the authority core.

public testSimpleSearch() : void
Return values
void

getBackend()

Get a search backend

protected getBackend([string $name = 'Solr' ]) : object
Parameters
$name : string = 'Solr'

Backend name

Return values
object

getResultsObject()

Get a search results object

protected getResultsObject([string $name = 'Solr' ]) : Results
Parameters
$name : string = 'Solr'

Backend name

Return values
Results

Search results