MakeTagTest
extends AbstractMakeTagTestCase
in package
MakeTag view helper Test Class
Tags
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
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
Return values
void —testValidTagNames()
Test tag name edge cases
public
testValidTagNames(string $tagName) : void
Parameters
- $tagName : string
-
Tag name to use in test
Tags
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> —getHelper()
Get makeTag helper with mock view
protected
getHelper() : MakeTag
Return values
MakeTag —getViewWithHelpers()
Get makeTag helper with mock view
protected
getViewWithHelpers() : EscapeHtml