HelpTextTest
extends TestCase
in package
HelpText View Helper Test Class
Tags
Table of Contents
- testMissingHelp() : void
- Test that an appropriate warning is set when help is missing.
- testMissingLanguageHelp() : void
- Test that an appropriate warning is set when help is not found in the requested language.
- testSuccess() : void
- Test an entirely successful render operation.
- getMockContentHelper() : Content
- Get a mock Content helper which will return a specific value and set a specific set of page details when renderTranslated() is called.
Methods
testMissingHelp()
Test that an appropriate warning is set when help is missing.
public
testMissingHelp() : void
Return values
void —testMissingLanguageHelp()
Test that an appropriate warning is set when help is not found in the requested language.
public
testMissingLanguageHelp() : void
Return values
void —testSuccess()
Test an entirely successful render operation.
public
testSuccess() : void
Return values
void —getMockContentHelper()
Get a mock Content helper which will return a specific value and set a specific set of page details when renderTranslated() is called.
protected
getMockContentHelper(string $mockReturnValue[, array<string|int, mixed> $mockPageDetails = [] ][, string $topic = 'foo' ][, array<string|int, mixed> $context = [] ]) : Content
Parameters
- $mockReturnValue : string
-
The output of renderTranslated
- $mockPageDetails : array<string|int, mixed> = []
-
The reference data set by renderTranslated
- $topic : string = 'foo'
-
The topic expected by renderTranslated
- $context : array<string|int, mixed> = []
-
The context expected by renderTranslated