RecordFormatterTest
extends TestCase
in package
Unit tests for record formatter.
Tags
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> —getDriver()
Get a record driver to test with.
protected
getDriver() : TestHarness
Return values
TestHarness —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