VuFind API Documentation

SolrTest extends TestCase
in package
Uses LiveDetectionTrait, LiveSolrTrait

Solr Connection 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.
testAlphaBrowseSeeAlso()  : void
Check AlphaBrowse "see also" functionality.
testAlphaBrowseUseInstead()  : void
Check AlphaBrowse "use instead" functionality.
testDeweyValues()  : void
Check that expected Dewey values are present (tests VUFIND-701).
testTermsHandler()  : void
Check that the terms handler is working.
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

testAlphaBrowseSeeAlso()

Check AlphaBrowse "see also" functionality.

public testAlphaBrowseSeeAlso() : void
Return values
void

testAlphaBrowseUseInstead()

Check AlphaBrowse "use instead" functionality.

public testAlphaBrowseUseInstead() : void
Return values
void

testDeweyValues()

Check that expected Dewey values are present (tests VUFIND-701).

public testDeweyValues() : void
Return values
void

testTermsHandler()

Check that the terms handler is working.

public testTermsHandler() : 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