RecordLinkerTest
extends TestCase
in package
Uses
ViewTrait
RecordLinker view helper Test Class
Tags
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 —getRecordLinker()
Get a RecordLinker object ready for testing.
protected
getRecordLinker() : RecordLinker
Return values
RecordLinker —getSearchMemoryViewHelper()
Get mock SearchMemory view helper
protected
getSearchMemoryViewHelper([Memory|null $memory = null ]) : SearchMemory
Parameters
- $memory : Memory|null = null
-
Optional search memory
Return values
SearchMemory —getUrl()
Get a URL helper.
protected
getUrl() : Url