VuFind API Documentation

RecordFormatterTest extends TestCase
in package

Unit tests for record formatter.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link
https://vufind.org

Table of Contents

testFieldSpecs()  : void
Test getting the field specs.
testFormatter()  : void
Test the record formatter.
getDefaultDefs()  : array<string|int, mixed>
Get default configuration to use in tests when no overrides are specified.
getDriver()  : TestHarness
Get a record driver to test with.
getFormatter()  : RecordFormatter
Get a formatter to test with.
getHelperPluginManager()  : HelperPluginManager
Get a helper plugin manager for the RecordFormatter.

Methods

testFieldSpecs()

Test getting the field specs.

public testFieldSpecs() : void
Return values
void

testFormatter()

Test the record formatter.

public testFormatter() : void
Return values
void

getDefaultDefs()

Get default configuration to use in tests when no overrides are specified.

protected getDefaultDefs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFormatter()

Get a formatter to test with.

protected getFormatter([array<string|int, mixed> $defs = null ]) : RecordFormatter
Parameters
$defs : array<string|int, mixed> = null

Configuration for formatter

Return values
RecordFormatter

getHelperPluginManager()

Get a helper plugin manager for the RecordFormatter.

protected getHelperPluginManager() : HelperPluginManager
Return values
HelperPluginManager

Search results