VuFind API Documentation

AlphaBrowseTest extends TestCase
in package

AlphaBrowse view helper 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

Wiki

Table of Contents

testGetUrlAppliesFilterBypassSetting()  : void
Test that get URL omits dfApplied when the bypass_default_filters option is false.
testGetUrlEscapesQuotes()  : void
Test that get URL properly escapes quotes in headings.
testGetUrlWithMultipleRecordsAndDefaultSettings()  : void
Test that get URL displays an appropriate link for multiple results with default settings.
testGetUrlWithSingleRecordAndDefaultSettings()  : void
Test that get URL displays an appropriate link for a single result with default settings.
getHelper()  : AlphaBrowse
Get configured AlphaBrowse helper for testing.
getMockUrlHelper()  : Url
Get mock URL helper.

Methods

testGetUrlAppliesFilterBypassSetting()

Test that get URL omits dfApplied when the bypass_default_filters option is false.

public testGetUrlAppliesFilterBypassSetting() : void
Return values
void

testGetUrlEscapesQuotes()

Test that get URL properly escapes quotes in headings.

public testGetUrlEscapesQuotes() : void
Return values
void

testGetUrlWithMultipleRecordsAndDefaultSettings()

Test that get URL displays an appropriate link for multiple results with default settings.

public testGetUrlWithMultipleRecordsAndDefaultSettings() : void
Return values
void

testGetUrlWithSingleRecordAndDefaultSettings()

Test that get URL displays an appropriate link for a single result with default settings.

public testGetUrlWithSingleRecordAndDefaultSettings() : void
Return values
void

getHelper()

Get configured AlphaBrowse helper for testing.

protected getHelper(Url $url[, array<string|int, mixed> $options = [] ]) : AlphaBrowse
Parameters
$url : Url

URL helper

$options : array<string|int, mixed> = []

Extra options

Return values
AlphaBrowse

getMockUrlHelper()

Get mock URL helper.

protected getMockUrlHelper(string $expectedQuery) : Url
Parameters
$expectedQuery : string

Expected query

Return values
Url

Search results