ParentTemplateTest
extends TestCase
in package
Uses
FixtureTrait
ParentTemplate view helper Test Class
Tags
Table of Contents
- $fixturePath : string
- Path to theme fixtures
- setUp() : void
- Constructor
- testException() : void
- Test thrown error
- testParent() : void
- Test the basic parent function.
- testRepeatCalls() : void
- Test stack rewinding bug (VUFIND-1604)
- testSkip() : void
- Test deeper parent return
- getFixture() : string
- Load a fixture file.
- getFixtureDir() : string
- Get the base directory containing fixtures.
- getFixturePath() : string
- Resolve fixture path.
- getHelper() : ParentTemplate
- Get a populated resource container for testing.
- getJsonFixture() : array<string|int, mixed>
- Load a JSON fixture from file (using associative array return type).
Properties
$fixturePath
Path to theme fixtures
protected
string
$fixturePath
Methods
setUp()
Constructor
public
setUp() : void
Return values
void —testException()
Test thrown error
public
testException() : void
Return values
void —testParent()
Test the basic parent function.
public
testParent() : void
Return values
void —testRepeatCalls()
Test stack rewinding bug (VUFIND-1604)
public
testRepeatCalls() : void
Return values
void —testSkip()
Test deeper parent return
public
testSkip() : void
Return values
void —getFixture()
Load a fixture file.
protected
getFixture(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getFixtureDir()
Get the base directory containing fixtures.
protected
getFixtureDir([string $module = 'VuFind' ]) : string
Parameters
- $module : string = 'VuFind'
-
Module containing fixture.
Return values
string —getFixturePath()
Resolve fixture path.
protected
getFixturePath(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getHelper()
Get a populated resource container for testing.
protected
getHelper(array<string|int, mixed> $stack) : ParentTemplate
Parameters
- $stack : array<string|int, mixed>
-
Path stack
Return values
ParentTemplate —getJsonFixture()
Load a JSON fixture from file (using associative array return type).
protected
getJsonFixture(string $filename[, string $module = 'VuFind' ]) : array<string|int, mixed>
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.