SolrAuthTest
extends TestCase
in package
Uses
LiveDetectionTrait, LiveSolrTrait
Solr Auth Test Class
Tags
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 —createLiveSolrContainer()
Create and populate container for services related to live Solr connectivity.
protected
createLiveSolrContainer() : MockContainer
Return values
MockContainer —getBackend()
Get a search backend
protected
getBackend([string $name = 'Solr' ]) : object
Parameters
- $name : string = 'Solr'
-
Backend name
Return values
object —getLiveSolrContainer()
Get container for services related to live Solr connectivity.
protected
getLiveSolrContainer() : MockContainer
Return values
MockContainer —getResultsObject()
Get a search results object
protected
getResultsObject([string $name = 'Solr' ]) : Results
Parameters
- $name : string = 'Solr'
-
Backend name