ThemeCompilerTest
extends TestCase
in package
Uses
FixtureTrait
ThemeCompiler Test Class
Tags
Table of Contents
- $info : ThemeInfo
- ThemeInfo object for tests
- $targetPath : string
- Path where new theme will be created
- setUp() : void
- Standard setup method.
- tearDown() : void
- Teardown method: clean up test directory.
- testOverwriteProtection() : void
- Test overwrite protection.
- testStandardCompilation() : void
- Test the compiler.
- testStandardCompilationWithMixin() : void
- Test the compiler with a mixin.
- getFixture() : string
- Load a fixture file.
- getFixtureDir() : string
- Get the base directory containing fixtures.
- getFixturePath() : string
- Resolve fixture path.
- getJsonFixture() : array<string|int, mixed>
- Load a JSON fixture from file (using associative array return type).
- getThemeCompiler() : ThemeCompiler
- Get a test ThemeCompiler object
Properties
$info
ThemeInfo object for tests
protected
ThemeInfo
$info
$targetPath
Path where new theme will be created
protected
string
$targetPath
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —tearDown()
Teardown method: clean up test directory.
public
tearDown() : void
Return values
void —testOverwriteProtection()
Test overwrite protection.
public
testOverwriteProtection() : void
Return values
void —testStandardCompilation()
Test the compiler.
public
testStandardCompilation() : void
Return values
void —testStandardCompilationWithMixin()
Test the compiler with a mixin.
public
testStandardCompilationWithMixin() : 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 —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.
Return values
array<string|int, mixed> —getThemeCompiler()
Get a test ThemeCompiler object
protected
getThemeCompiler() : ThemeCompiler