TemplatePathTest
extends TestCase
in package
Uses
FixtureTrait
TemplatePath view helper Test Class
Tags
Table of Contents
- $fixturePath : string
- Path to theme fixtures
- setUp() : void
- Constructor
- testExists() : void
- Test the basic parent function.
- testFileDoesntExist() : void
- Test thrown error
- testThemeDoesntExist() : void
- Test thrown error
- getFixture() : string
- Load a fixture file.
- getFixtureDir() : string
- Get the base directory containing fixtures.
- getFixturePath() : string
- Resolve fixture path.
- getHelper() : TemplatePath
- 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 —testExists()
Test the basic parent function.
public
testExists() : void
Return values
void —testFileDoesntExist()
Test thrown error
public
testFileDoesntExist() : void
Return values
void —testThemeDoesntExist()
Test thrown error
public
testThemeDoesntExist() : 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() : TemplatePath
Return values
TemplatePath —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.