RediTest
extends TestCase
in package
Uses
FixtureTrait
Redi resolver driver test
Tags
Table of Contents
- $openUrlConfig : array<string|int, mixed>
- Test-Config
- testParseLinks() : void
- Test
- createConnector() : Connector
- Create connector with fixture file.
- 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://www.redi-bw.de/links/ubl', 'rfr_id' => 'www.ub.uni-leipzig.de', 'resolver' => 'redi', '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 —createConnector()
Create connector with fixture file.
protected
createConnector([string $fixture = null ]) : Connector
Parameters
- $fixture : string = null
-
Fixture file
Tags
Return values
Connector —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.