VuFind API Documentation

DOITest extends TestCase
in package

DOI recommendation module Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

testDoiRedirectConfigs()  : void
Test configuration of the redirect setting:
testEmptyQuery()  : void
Test an empty query.
testExactDoiQuery()  : void
Test an exact DOI query.
testNonDoiQuery()  : void
Test a non-DOI query.
testNonExactDoiQuery()  : void
Test a non-exact DOI query.
getDOI()  : DOI
Get a fully configured module
getMockParams()  : Params
Get a mock params object.
getMockResults()  : Results
Get a mock results object.

Methods

testDoiRedirectConfigs()

Test configuration of the redirect setting:

public testDoiRedirectConfigs() : void
Return values
void

testEmptyQuery()

Test an empty query.

public testEmptyQuery() : void
Return values
void

testExactDoiQuery()

Test an exact DOI query.

public testExactDoiQuery() : void
Return values
void

testNonDoiQuery()

Test a non-DOI query.

public testNonDoiQuery() : void
Return values
void

testNonExactDoiQuery()

Test a non-exact DOI query.

public testNonExactDoiQuery() : void
Return values
void

getDOI()

Get a fully configured module

protected getDOI([Results $results = null ][, string $settings = 'http://doi/' ]) : DOI
Parameters
$results : Results = null

results object

$settings : string = 'http://doi/'

settings

Return values
DOI

getMockParams()

Get a mock params object.

protected getMockParams([string $query = '' ][, string $type = 'basic' ]) : Params
Parameters
$query : string = ''

Query to include

$type : string = 'basic'

Query type ('basic' or 'advanced')

Return values
Params

getMockResults()

Get a mock results object.

protected getMockResults([string $query = '' ][, string $type = 'basic' ]) : Results
Parameters
$query : string = ''

Query to include

$type : string = 'basic'

Query type ('basic' or 'advanced')

Return values
Results

Search results