SetupThemeResourcesTest
extends TestCase
in package
Uses
ReflectionTrait
SetupThemeResources view helper Test Class
Tags
Table of Contents
- testConfigParsing() : void
- Test configuration parsing.
- testHelper() : void
- Test the helper.
- callMethod() : mixed
- Call protected or private method for side-effect and result.
- getMockHeadLink() : HeadLink
- Get a fake HeadLink helper.
- getMockHeadMeta() : MockObject|HeadMeta
- Get a fake HeadMeta helper.
- getMockHeadScript() : HeadScript
- Get a fake HeadScript helper.
- getMockView() : PhpRenderer
- Get a fake view object.
- getProperty() : mixed
- Return protected or private property.
- getResourceContainer() : ResourceContainer
- Get a populated resource container for testing.
- setProperty() : void
- Set protected or private property.
Methods
testConfigParsing()
Test configuration parsing.
public
testConfigParsing() : void
Return values
void —testHelper()
Test the helper.
public
testHelper() : void
Return values
void —callMethod()
Call protected or private method for side-effect and result.
protected
callMethod(object|string $object, string $method[, array<string|int, mixed> $arguments = [] ]) : mixed
Uses PHP's reflection API in order to modify method accessibility.
Parameters
- $object : object|string
-
Object or class name
- $method : string
-
Method name
- $arguments : array<string|int, mixed> = []
-
Method arguments
Tags
Return values
mixed —getMockHeadLink()
Get a fake HeadLink helper.
protected
getMockHeadLink() : HeadLink
Return values
HeadLink —getMockHeadMeta()
Get a fake HeadMeta helper.
protected
getMockHeadMeta() : MockObject|HeadMeta
Return values
MockObject|HeadMeta —getMockHeadScript()
Get a fake HeadScript helper.
protected
getMockHeadScript() : HeadScript
Return values
HeadScript —getMockView()
Get a fake view object.
protected
getMockView() : PhpRenderer
Return values
PhpRenderer —getProperty()
Return protected or private property.
protected
getProperty(object|string $object, string $property) : mixed
Uses PHP's reflection API in order to modify property accessibility.
Parameters
- $object : object|string
-
Object or class name
- $property : string
-
Property name
Tags
Return values
mixed —getResourceContainer()
Get a populated resource container for testing.
protected
getResourceContainer() : ResourceContainer
Return values
ResourceContainer —setProperty()
Set protected or private property.
protected
setProperty(object|string $object, string $property, mixed $value) : void
Uses PHP's reflection API in order to modify property accessibility.
Parameters
- $object : object|string
-
Object or class name
- $property : string
-
Property name
- $value : mixed
-
Property value