SideFacetsTest
extends TestCase
in package
Uses
ConfigPluginManagerTrait
SideFacets recommendation module Test Class
Tags
Table of Contents
- testDynamicCheckboxesCanBeDisabled() : void
- Test that dynamic checkboxes can be disabled.
- testExcludeAllowed() : void
- Test excludeAllowed
- testFacetInit() : void
- Test facet initialization.
- testGetAllRangeFacets() : void
- Test getAllRangeFacets()
- testGetCheckboxFacetSetDefaultsToEmptyArray() : void
- Test that getCheckboxFacetSet returns an empty array when no checkboxes are requested.
- testGetCheckboxFacetSetReturnsValueWhenAppropriate() : void
- Test that getCheckboxFacetSet returns values when expected.
- testGetCollapsedFacetsDefault() : void
- Test default getCollapsedFacets behavior.
- testGetCollapsedFacetsDelimitedList() : void
- Test asterisk support in getCollapsedFacets
- testGetCollapsedFacetsWildcard() : void
- Test delimited list support in getCollapsedFacets
- testGetFacetOperator() : void
- Test getFacetOperator
- testGetResults() : void
- Test "getResults"
- testHierarchicalGetters() : void
- Test getHierarchicalFacets() and getHierarchicalFacetSortOptions()
- 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.
- getMockResults() : Results
- Get a mock results object.
- getSideFacets() : SideFacets
- Get a fully configured module
Methods
testDynamicCheckboxesCanBeDisabled()
Test that dynamic checkboxes can be disabled.
public
testDynamicCheckboxesCanBeDisabled() : void
Return values
void —testExcludeAllowed()
Test excludeAllowed
public
testExcludeAllowed() : void
Return values
void —testFacetInit()
Test facet initialization.
public
testFacetInit() : void
Return values
void —testGetAllRangeFacets()
Test getAllRangeFacets()
public
testGetAllRangeFacets() : void
Return values
void —testGetCheckboxFacetSetDefaultsToEmptyArray()
Test that getCheckboxFacetSet returns an empty array when no checkboxes are requested.
public
testGetCheckboxFacetSetDefaultsToEmptyArray() : void
Return values
void —testGetCheckboxFacetSetReturnsValueWhenAppropriate()
Test that getCheckboxFacetSet returns values when expected.
public
testGetCheckboxFacetSetReturnsValueWhenAppropriate() : void
Return values
void —testGetCollapsedFacetsDefault()
Test default getCollapsedFacets behavior.
public
testGetCollapsedFacetsDefault() : void
Return values
void —testGetCollapsedFacetsDelimitedList()
Test asterisk support in getCollapsedFacets
public
testGetCollapsedFacetsDelimitedList() : void
Return values
void —testGetCollapsedFacetsWildcard()
Test delimited list support in getCollapsedFacets
public
testGetCollapsedFacetsWildcard() : void
Return values
void —testGetFacetOperator()
Test getFacetOperator
public
testGetFacetOperator() : void
Return values
void —testGetResults()
Test "getResults"
public
testGetResults() : void
Return values
void —testHierarchicalGetters()
Test getHierarchicalFacets() and getHierarchicalFacetSortOptions()
public
testHierarchicalGetters() : void
Return values
void —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 —getMockParams()
Get a mock params object.
protected
getMockParams([Query $query = null ]) : Params
Parameters
- $query : Query = null
-
Query to include in container.
Return values
Params —getMockResults()
Get a mock results object.
protected
getMockResults([Params $params = null ]) : Results
Parameters
- $params : Params = null
-
Params to include in container.
Return values
Results —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