SolrDefaultTest
extends TestCase
in package
Uses
FixtureTrait
SolrDefault Record Driver Test Class
Tags
Table of Contents
- testArticleOpenURL() : void
- Test an OpenURL for an article.
- testBookOpenURL() : void
- Test an OpenURL for a book.
- testDublinCore() : void
- Test Dublin Core conversion.
- testEmptyGetHighlightedSnippet() : void
- Test getHighlightedSnippet for an empty record.
- testGetChildRecordCount() : void
- Test getChildRecordCount for a record.
- testGetContainerRecordID() : void
- Test getContainerRecordID for a record.
- testGetHighlightedSnippetAllEmpty() : void
- Test getHighlightedSnippet for a record when empty snippet data is given.
- testGetHighlightedSnippetFirstEmpty() : void
- Test getHighlightedSnippet for a record when the first snippet is empty.
- testGetHighlightedSnippetInPreferredFieldOrder() : void
- Test getHighlightedSnippet for a record when multiple preferred snippet fields exist.
- testGetHighlightedSnippetNonForbiddenField() : void
- Test getHighlightedSnippet for a record when no preferred snippet fields exist.
- testGetHighlightedTitle() : void
- Test getHighlightedTitle for a record.
- testGetRawAuthorHighlights() : void
- Test getRawAuthorHighlights for a record.
- testGetSnippetCaption() : void
- Test a snippet caption.
- testHighlightDetails() : void
- Test HighlightDetails for a record.
- testJournalOpenURL() : void
- Test an OpenURL for a journal.
- testUnknownTypeBothISBNsandISSNsOpenURL() : void
- Test an OpenURL for an unknown material type with both ISBN and ISSN
- testUnknownTypeOnlyISBNsOpenURL() : void
- Test an OpenURL for an unknown material type with only ISBNs
- testUnknownTypeOpenURL() : void
- Test an OpenURL for an unknown material type with no ISBN or ISSN
- getDriver() : SolrDefault
- Get a record driver with fake data.
- 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
testArticleOpenURL()
Test an OpenURL for an article.
public
testArticleOpenURL() : void
Return values
void —testBookOpenURL()
Test an OpenURL for a book.
public
testBookOpenURL() : void
Return values
void —testDublinCore()
Test Dublin Core conversion.
public
testDublinCore() : void
Return values
void —testEmptyGetHighlightedSnippet()
Test getHighlightedSnippet for an empty record.
public
testEmptyGetHighlightedSnippet() : void
Return values
void —testGetChildRecordCount()
Test getChildRecordCount for a record.
public
testGetChildRecordCount() : void
Return values
void —testGetContainerRecordID()
Test getContainerRecordID for a record.
public
testGetContainerRecordID() : void
Return values
void —testGetHighlightedSnippetAllEmpty()
Test getHighlightedSnippet for a record when empty snippet data is given.
public
testGetHighlightedSnippetAllEmpty() : void
Return values
void —testGetHighlightedSnippetFirstEmpty()
Test getHighlightedSnippet for a record when the first snippet is empty.
public
testGetHighlightedSnippetFirstEmpty() : void
Return values
void —testGetHighlightedSnippetInPreferredFieldOrder()
Test getHighlightedSnippet for a record when multiple preferred snippet fields exist.
public
testGetHighlightedSnippetInPreferredFieldOrder() : void
Return values
void —testGetHighlightedSnippetNonForbiddenField()
Test getHighlightedSnippet for a record when no preferred snippet fields exist.
public
testGetHighlightedSnippetNonForbiddenField() : void
Return values
void —testGetHighlightedTitle()
Test getHighlightedTitle for a record.
public
testGetHighlightedTitle() : void
Return values
void —testGetRawAuthorHighlights()
Test getRawAuthorHighlights for a record.
public
testGetRawAuthorHighlights() : void
Return values
void —testGetSnippetCaption()
Test a snippet caption.
public
testGetSnippetCaption() : void
Return values
void —testHighlightDetails()
Test HighlightDetails for a record.
public
testHighlightDetails() : void
Return values
void —testJournalOpenURL()
Test an OpenURL for a journal.
public
testJournalOpenURL() : void
Return values
void —testUnknownTypeBothISBNsandISSNsOpenURL()
Test an OpenURL for an unknown material type with both ISBN and ISSN
public
testUnknownTypeBothISBNsandISSNsOpenURL() : void
Return values
void —testUnknownTypeOnlyISBNsOpenURL()
Test an OpenURL for an unknown material type with only ISBNs
public
testUnknownTypeOnlyISBNsOpenURL() : void
Return values
void —testUnknownTypeOpenURL()
Test an OpenURL for an unknown material type with no ISBN or ISSN
public
testUnknownTypeOpenURL() : void
Return values
void —getDriver()
Get a record driver with fake data.
protected
getDriver([array<string|int, mixed> $overrides = [] ][, array<string|int, mixed> $searchConfig = [] ]) : SolrDefault
Parameters
- $overrides : array<string|int, mixed> = []
-
Fixture fields to override.
- $searchConfig : array<string|int, mixed> = []
-
Search configuration.
Return values
SolrDefault —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.