RecommendTest
extends AjaxHandlerTestCase
in package
Recommend 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.
- getMockParams() : Params
- Get a mock params object.
- getMockResults() : Results
- Get a mock results object.
- getMockUser() : MockObject|UserEntityInterface
- Create mock user object.
- getParamsHelper() : Params
- Build a Params helper for testing.
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 —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 —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