MergeMarcCommandTest
extends TestCase
in package
Uses
FixtureTrait
MergeMarc command test.
Tags
Table of Contents
- testBadFile() : void
- Test that merging an invalid MARC file generates an exception
- testMergingDirectory() : void
- Test that merging a directory yields valid results.
- testMissingDirectory() : void
- Test that merging a non-existent directory yields an error message.
- testWithoutParameters() : void
- Test that missing parameters yield an error message.
- 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).
Methods
testBadFile()
Test that merging an invalid MARC file generates an exception
public
testBadFile() : void
Return values
void —testMergingDirectory()
Test that merging a directory yields valid results.
public
testMergingDirectory() : void
Return values
void —testMissingDirectory()
Test that merging a non-existent directory yields an error message.
public
testMissingDirectory() : void
Return values
void —testWithoutParameters()
Test that missing parameters yield an error message.
public
testWithoutParameters() : 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.