VuFind API Documentation

MakeTagTest extends AbstractMakeTagTestCase
in package

MakeTag view helper Test Class

Tags
category

VuFind

author

Chris Hallberg crhallberg@gmail.com

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

helperOptionTests()  : array<string|int, mixed>
Void elements for test below
htmlAttributesTests()  : array<string|int, mixed>
Test that responds to common inputs
invalidTags()  : array<string|int, mixed>
Bad tag names for test below
testDeprecatedElementTriggersWarning()  : void
Test deprecated elements
testElements()  : void
Test all data providers above
testInvalidTagNames()  : void
Test exception on bad tag names
testValidTagNames()  : void
Test tag name edge cases
validTags()  : array<string|int, mixed>
Good tag names for test below
voidTags()  : array<string|int, mixed>
Void elements for test below
getHelper()  : MakeTag
Get makeTag helper with mock view
getViewWithHelpers()  : EscapeHtml
Get makeTag helper with mock view

Methods

helperOptionTests()

Void elements for test below

public static helperOptionTests() : array<string|int, mixed>
Return values
array<string|int, mixed>

htmlAttributesTests()

Test that responds to common inputs

public static htmlAttributesTests() : array<string|int, mixed>
Return values
array<string|int, mixed>

invalidTags()

Bad tag names for test below

public static invalidTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

testDeprecatedElementTriggersWarning()

Test deprecated elements

public testDeprecatedElementTriggersWarning() : void
Return values
void

testElements()

Test all data providers above

public testElements(string $expected, array<string|int, mixed> $params) : void
Parameters
$expected : string

Expected value

$params : array<string|int, mixed>

Parameters to test

Tags
dataProvider

htmlAttributesTests

dataProvider

helperOptionTests

dataProvider

voidTags

Return values
void

testInvalidTagNames()

Test exception on bad tag names

public testInvalidTagNames(string $tagName) : void
Parameters
$tagName : string

Tag name to use in test

Tags
dataProvider

invalidTags

Return values
void

testValidTagNames()

Test tag name edge cases

public testValidTagNames(string $tagName) : void
Parameters
$tagName : string

Tag name to use in test

Tags
dataProvider

validTags

Return values
void

validTags()

Good tag names for test below

public static validTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

voidTags()

Void elements for test below

public static voidTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

getViewWithHelpers()

Get makeTag helper with mock view

protected getViewWithHelpers() : EscapeHtml
Return values
EscapeHtml

Search results