AlmaTest
extends TestCase
in package
Uses
FixtureTrait
Alma resolver driver test
Tags
Table of Contents
- $openUrlConfig : array<string|int, mixed>
- Test-Config
- testParseLinks() : void
- Test
- testParseLinksWithoutIgnoredFiltering() : void
- Test link parser without ignored filters
- createConnector() : Connector
- Create connector with fixture file.
- getExpectedParsedLinks() : array<string|int, mixed>
- Support method for testParseLinks and testParseLinksWithoutIgnoredFiltering.
- 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).
Properties
$openUrlConfig
Test-Config
protected
array<string|int, mixed>
$openUrlConfig
= ['OpenURL' => ['url' => "http://na01.alma.exlibrisgroup.com/view/uresolver/TR_INTEGRATION_INST/openurl'\n . '?debug=true&u.ignore_date_coverage=true&rft.mms_id=9942811800561'\n . '&rfr_id=info:sid/primo.exlibrisgroup.com&svc_dat=CTO", 'rfr_id' => 'vufind.svn.sourceforge.net', 'resolver' => 'alma', 'window_settings' => "toolbar=no,location=no,directories=no,buttons=no,status=no,menubar=no,'\n . 'scrollbars=yes,resizable=yes,width=550,height=600", 'show_in_results' => false, 'show_in_record' => false, 'show_in_holdings' => true, 'embed' => true, 'replace_other_urls' => true]]
Methods
testParseLinks()
Test
public
testParseLinks() : void
Return values
void —testParseLinksWithoutIgnoredFiltering()
Test link parser without ignored filters
public
testParseLinksWithoutIgnoredFiltering() : void
Return values
void —createConnector()
Create connector with fixture file.
protected
createConnector([string $fixture = null ][, array<string|int, mixed> $options = [] ]) : Connector
Parameters
- $fixture : string = null
-
Fixture file
- $options : array<string|int, mixed> = []
-
Connector options
Tags
Return values
Connector —getExpectedParsedLinks()
Support method for testParseLinks and testParseLinksWithoutIgnoredFiltering.
protected
getExpectedParsedLinks([bool $filterSet = false ]) : array<string|int, mixed>
Parameters
- $filterSet : bool = false
-
Should we filter the results for testParseLinksWithoutIgnoredFiltering?
Return values
array<string|int, mixed> —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.