VuFind API Documentation

CommentRecordTest extends AjaxHandlerTestCase
in package

CommentRecord 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.
testDisabledResponse()  : void
Test the AJAX handler's response when comments are disabled.
testEmptyQuery()  : void
Test the AJAX handler's response when the query is empty.
testLoggedOutUser()  : void
Test the AJAX handler's response when no one is logged in.
testSuccessfulTransaction()  : void
Test a successful scenario.
getHandler()  : CommentRecord
Set up a CommentRecord handler for testing.
getMockAuthManager()  : MockObject|Manager
Get an auth manager with a value set for getUserObject.
getMockUser()  : MockObject|UserEntityInterface
Create mock user object.
getParamsHelper()  : Params
Build a Params helper for testing.

Properties

Methods

testDisabledResponse()

Test the AJAX handler's response when comments are disabled.

public testDisabledResponse() : void
Return values
void

testEmptyQuery()

Test the AJAX handler's response when the query is empty.

public testEmptyQuery() : void
Return values
void

testLoggedOutUser()

Test the AJAX handler's response when no one is logged in.

public testLoggedOutUser() : void
Return values
void

testSuccessfulTransaction()

Test a successful scenario.

public testSuccessfulTransaction() : void
Return values
void

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