FacetCloudTest
extends TestCase
in package
Uses
ConfigPluginManagerTrait
FacetCloud recommendation module Test Class
Tags
Table of Contents
- testGetFacetLimit() : void
- Test getEmptyResults()
- getFacetCloud() : FacetCloud
- Get a fully configured module
- 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.
Methods
testGetFacetLimit()
Test getEmptyResults()
public
testGetFacetLimit() : void
Return values
void —getFacetCloud()
Get a fully configured module
protected
getFacetCloud([PluginManager $configLoader = null ][, Results $results = null ][, Results $emptyResults = null ][, string $settings = '' ][, Parameters $request = null ]) : FacetCloud
Parameters
- $configLoader : PluginManager = null
-
config loader
- $results : Results = null
-
populated results object
- $emptyResults : Results = null
-
empty results object
- $settings : string = ''
-
settings
- $request : Parameters = null
-
request
Return values
FacetCloud —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.