PrintArrayHtmlTest
extends AbstractMakeTagTestCase
in package
Uses
ViewTrait
PrintArrayHtml Test Class
Tags
Table of Contents
- getPrintArrayHtmlData() : array<string|int, mixed>
- Data provider for test
- testPrintArrayHtml() : void
- Test PrintArrayHtml.
- getHelper() : PrintArrayHtml
- Get view helper to test.
- getPathForTheme() : string
- Get the directory for a given theme.
- getPhpRenderer() : PhpRenderer
- Get a working renderer.
- getSearchMemoryViewHelper() : SearchMemory
- Get mock SearchMemory view helper
- getViewWithHelpers() : EscapeHtml
- Get makeTag helper with mock view
Methods
getPrintArrayHtmlData()
Data provider for test
public
static getPrintArrayHtmlData() : array<string|int, mixed>
Return values
array<string|int, mixed> —testPrintArrayHtml()
Test PrintArrayHtml.
public
testPrintArrayHtml(array<string|int, mixed>|string $entry, string $expected) : void
Parameters
- $entry : array<string|int, mixed>|string
-
Array to print
- $expected : string
-
Expected HTML
Tags
Return values
void —getHelper()
Get view helper to test.
protected
getHelper() : PrintArrayHtml
Return values
PrintArrayHtml —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 —getViewWithHelpers()
Get makeTag helper with mock view
protected
getViewWithHelpers() : EscapeHtml