OptionsTest
extends TestCase
in package
Uses
ConfigPluginManagerTrait
Solr Search Object Options Test
Tags
Table of Contents
- testDefaultSortTieBreaker() : void
- Test default sort tie-breaker behavior.
- testGetSearchClassId() : void
- Test that correct search class ID is reported
- testSortTieBreakerConfiguration() : void
- Test configuration of sort tie-breaker setting.
- 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.
- getOptions() : Options
- Get Options object
Methods
testDefaultSortTieBreaker()
Test default sort tie-breaker behavior.
public
testDefaultSortTieBreaker() : void
Return values
void —testGetSearchClassId()
Test that correct search class ID is reported
public
testGetSearchClassId() : void
Return values
void —testSortTieBreakerConfiguration()
Test configuration of sort tie-breaker setting.
public
testSortTieBreakerConfiguration() : 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 —getOptions()
Get Options object
protected
getOptions([PluginManager $configManager = null ]) : Options
Parameters
- $configManager : PluginManager = null
-
Config manager for Options object (null for new mock)