SolrOverdriveTest
extends TestCase
in package
Uses
FixtureTrait
SolrOverdrive Record Driver Test Class
Tags
Table of Contents
- testGetAllSubjectHeadingsMarc() : void
- Test getAllSubjectHeadings() with MARC
- testGetAllSubjectHeadingsNonMarc() : void
- Test getAllSubjectHeadings() without MARC
- testGetBreadcrumb() : void
- Test getBreadcrumb()
- testGetGeneralNotes() : void
- Test getGeneralNotes()
- testGetOverdriveIDWithMarc() : void
- Test getOverdriveID in MARC mode
- testGetOverdriveIDWithoutMarc() : void
- Test getOverdriveID in non-MARC mode
- testGetSummaryMarc() : void
- Test getSummary() with MARC
- testGetSummaryNonMarc() : void
- Test getSummary() without MARC
- testGetThumbnailNoMarc() : void
- Test getThumbnail without MARC
- testGetTitleSection() : void
- Test getTitleSection()
- testSupportsOpenUrl() : void
- Test supportsOpenUrl()
- getDriver() : SolrOverdrive
- Get a record driver to test with.
- 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).
- getMockConnector() : OverdriveConnector
- Get a mock Overdrive connector.
Methods
testGetAllSubjectHeadingsMarc()
Test getAllSubjectHeadings() with MARC
public
testGetAllSubjectHeadingsMarc() : void
Return values
void —testGetAllSubjectHeadingsNonMarc()
Test getAllSubjectHeadings() without MARC
public
testGetAllSubjectHeadingsNonMarc() : void
Return values
void —testGetBreadcrumb()
Test getBreadcrumb()
public
testGetBreadcrumb() : void
Return values
void —testGetGeneralNotes()
Test getGeneralNotes()
public
testGetGeneralNotes() : void
Return values
void —testGetOverdriveIDWithMarc()
Test getOverdriveID in MARC mode
public
testGetOverdriveIDWithMarc() : void
Return values
void —testGetOverdriveIDWithoutMarc()
Test getOverdriveID in non-MARC mode
public
testGetOverdriveIDWithoutMarc() : void
Return values
void —testGetSummaryMarc()
Test getSummary() with MARC
public
testGetSummaryMarc() : void
Return values
void —testGetSummaryNonMarc()
Test getSummary() without MARC
public
testGetSummaryNonMarc() : void
Return values
void —testGetThumbnailNoMarc()
Test getThumbnail without MARC
public
testGetThumbnailNoMarc() : void
Return values
void —testGetTitleSection()
Test getTitleSection()
public
testGetTitleSection() : void
Return values
void —testSupportsOpenUrl()
Test supportsOpenUrl()
public
testSupportsOpenUrl() : void
Return values
void —getDriver()
Get a record driver to test with.
protected
getDriver([Config $config = null ][, Config $recordConfig = null ][, OverdriveConnector $connector = null ]) : SolrOverdrive
Parameters
- $config : Config = null
-
Main configuration
- $recordConfig : Config = null
-
Record configuration
- $connector : OverdriveConnector = null
-
Overdrive connector
Return values
SolrOverdrive —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> —getMockConnector()
Get a mock Overdrive connector.
protected
getMockConnector([string $config = '{}' ]) : OverdriveConnector
Parameters
- $config : string = '{}'
-
JSON-formatted configuration