VuFind API Documentation

MarcAdvancedTraitTest extends TestCase
in package
Uses FixtureTrait

Record Driver Marc Advanced Trait Test Class

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

testMarcAdvancedTrait()  : void
Test methods in MarcAdvancedTrait.
testMarcAdvancedTraitAltScript()  : void
Test alternative script methods in MarcAdvancedTrait.
testMissingISMN()  : void
Test missing ISMN case.
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).
getMockDriverFromFixture()  : SolrMarc
Get a mock record driver from a MARC fixture.

Methods

testMarcAdvancedTrait()

Test methods in MarcAdvancedTrait.

public testMarcAdvancedTrait() : void

Note that some methods are covered by the other tests.

Return values
void

testMarcAdvancedTraitAltScript()

Test alternative script methods in MarcAdvancedTrait.

public testMarcAdvancedTraitAltScript() : void
Return values
void

testMissingISMN()

Test missing ISMN case.

public testMissingISMN() : 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
throws
RuntimeException
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
throws
RuntimeException
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>

getMockDriverFromFixture()

Get a mock record driver from a MARC fixture.

protected getMockDriverFromFixture(string $fixture) : SolrMarc
Parameters
$fixture : string

Fixture filename

Return values
SolrMarc

Search results