VuFind API Documentation

SetupThemeResourcesTest extends TestCase
in package
Uses ReflectionTrait

SetupThemeResources view helper Test Class

Tags
category

VuFind

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

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

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
throws
ReflectionException

Method does not exist

Return values
mixed

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
throws
ReflectionException

Property does not exist

Return values
mixed

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

Tags
throws
ReflectionException

Property does not exist

Return values
void

Search results