VuFind API Documentation

CollectionSideFacetsTest extends TestCase
in package
Uses ConfigPluginManagerTrait, SolrSearchObjectTrait

CollectionSideFacets recommendation module 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

getMockConfigManager()  : PluginManager
Get mock config manager.
getSolrOptions()  : Options
Get Solr options.
getSolrParams()  : Params
Get Solr params.
getSolrResults()  : Results
Get Solr results.
testKeywordFilter()  : void
Test "getResults"
getMockConfigPluginManager()  : MockObject|PluginManager
Get a mock configuration plugin manager with the given configuration "files" available.
getMockFailingConfigPluginManager()  : MockObject|PluginManager
Get a mock configuration plugin manager that will throw an exception.
getMockParams()  : Params
Get a mock params object.
getSideFacets()  : SideFacets
Get a fully configured module

Methods

getMockConfigPluginManager()

Get a mock configuration plugin manager with the given configuration "files" available.

protected getMockConfigPluginManager(array<string|int, mixed> $configs[, array<string|int, mixed> $default = [] ][, InvocationOrder|null $getExpect = null ][, InvocationOrder|null $hasExpect = null ]) : MockObject|PluginManager
Parameters
$configs : array<string|int, mixed>

An associative array of configurations where key is the file (e.g. 'config') and value an array of configuration sections and directives

$default : array<string|int, mixed> = []

Default configuration to return when no entry is found in $configs

$getExpect : InvocationOrder|null = null

The expected invocation order for the get() method (null for any)

$hasExpect : InvocationOrder|null = null

The expected invocation order for the has() method (null for any)

Return values
MockObject|PluginManager

getMockFailingConfigPluginManager()

Get a mock configuration plugin manager that will throw an exception.

protected getMockFailingConfigPluginManager(Throwable $exception) : MockObject|PluginManager
Parameters
$exception : Throwable

Exception to throw

Return values
MockObject|PluginManager

getSideFacets()

Get a fully configured module

protected getSideFacets([PluginManager $configLoader = null ][, Results $results = null ][, string $settings = '' ][, Parameters $request = null ]) : SideFacets
Parameters
$configLoader : PluginManager = null

config loader

$results : Results = null

results object

$settings : string = ''

settings

$request : Parameters = null

request

Return values
SideFacets

Search results