VuFind API Documentation

RecordLinkerTest extends TestCase
in package
Uses ViewTrait

RecordLinker view helper Test Class

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

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

link

Wiki

Table of Contents

testGetActionUrl()  : void
Test record URL creation with a non-tab action
testMultiQueryParams()  : void
Test behavior when there are multiple GET parameters
testPercentEscaping()  : void
Make sure any percent signs in record ID are properly URL-encoded
testRecordUrl()  : void
Test record URL creation.
getPathForTheme()  : string
Get the directory for a given theme.
getPhpRenderer()  : PhpRenderer
Get a working renderer.
getRecordLinker()  : RecordLinker
Get a RecordLinker object ready for testing.
getSearchMemoryViewHelper()  : SearchMemory
Get mock SearchMemory view helper
getUrl()  : Url
Get a URL helper.

Methods

testGetActionUrl()

Test record URL creation with a non-tab action

public testGetActionUrl() : void
Return values
void

testMultiQueryParams()

Test behavior when there are multiple GET parameters

public testMultiQueryParams() : void
Return values
void

testPercentEscaping()

Make sure any percent signs in record ID are properly URL-encoded

public testPercentEscaping() : void
Return values
void

testRecordUrl()

Test record URL creation.

public testRecordUrl() : void
Return values
void

getPathForTheme()

Get the directory for a given theme.

protected getPathForTheme(string $theme) : string
Parameters
$theme : string

Theme directory name

Return values
string

getPhpRenderer()

Get a working renderer.

protected getPhpRenderer([array<string|int, mixed> $plugins = [] ][, string $theme = 'bootstrap3' ]) : PhpRenderer
Parameters
$plugins : array<string|int, mixed> = []

Custom VuFind plug-ins to register

$theme : string = 'bootstrap3'

Theme directory to load from

Return values
PhpRenderer

getSearchMemoryViewHelper()

Get mock SearchMemory view helper

protected getSearchMemoryViewHelper([Memory|null $memory = null ]) : SearchMemory
Parameters
$memory : Memory|null = null

Optional search memory

Return values
SearchMemory

Search results