GetResolverLinksTest
extends AjaxHandlerTestCase
in package
Uses
ConfigPluginManagerTrait
GetResolverLinks test class.
Tags
Table of Contents
- $container : MockContainer
- Mock container
- setUp() : void
- Standard setup method.
- testResponse() : void
- Test the AJAX handler's basic response.
- getMockAuthManager() : MockObject|Manager
- Get an auth manager with a value set for getUserObject.
- 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.
- getMockUser() : MockObject|UserEntityInterface
- Create mock user object.
- getParamsHelper() : Params
- Build a Params helper for testing.
- setupConfig() : void
- Set up configuration for a test.
Properties
$container
Mock container
protected
MockContainer
$container
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —testResponse()
Test the AJAX handler's basic response.
public
testResponse() : void
Return values
void —getMockAuthManager()
Get an auth manager with a value set for getUserObject.
protected
getMockAuthManager([UserEntityInterface|null $user = null ]) : MockObject|Manager
Parameters
- $user : UserEntityInterface|null = null
-
Return value for getUserObject()
Return values
MockObject|Manager —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 —getMockUser()
Create mock user object.
protected
getMockUser() : MockObject|UserEntityInterface
Return values
MockObject|UserEntityInterface —getParamsHelper()
Build a Params helper for testing.
protected
getParamsHelper([array<string|int, mixed> $get = [] ][, array<string|int, mixed> $post = [] ]) : Params
Parameters
- $get : array<string|int, mixed> = []
-
GET parameters
- $post : array<string|int, mixed> = []
-
POST parameters
Return values
Params —setupConfig()
Set up configuration for a test.
protected
setupConfig([array<string|int, mixed> $config = [] ]) : void
Parameters
- $config : array<string|int, mixed> = []
-
Configuration to set.