VuFind API Documentation

RecommendTest extends AjaxHandlerTestCase
in package

Recommend test class.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Page

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

Methods

testResponse()

Test the AJAX handler's basic response.

public testResponse() : void
Return values
void

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

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

Search results