VuFind API Documentation

ConnectorTest extends TestCase
in package

Unit tests for WorldCat backend.

Tags
category

VuFind

author

David Maus maus@hab.de

license

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

link
https://vufind.org

Table of Contents

testGetHoldings()  : void
Test "get holdings"
testGetHoldingsHttpFailure()  : void
Test "get holdings" HTTP failure
testGetRecord()  : void
Test "get record"
testGetRecordWithError()  : void
Test "get record" with error
testSearch()  : void
Test search
getConnectorWithMockClient()  : Connector
Get a connector with a mock HTTP client.

Methods

testGetHoldings()

Test "get holdings"

public testGetHoldings() : void
Return values
void

testGetHoldingsHttpFailure()

Test "get holdings" HTTP failure

public testGetHoldingsHttpFailure() : void
Return values
void

testGetRecord()

Test "get record"

public testGetRecord() : void
Return values
void

testGetRecordWithError()

Test "get record" with error

public testGetRecordWithError() : void
Return values
void

testSearch()

Test search

public testSearch() : void
Return values
void

getConnectorWithMockClient()

Get a connector with a mock HTTP client.

protected getConnectorWithMockClient(string $expectedUri[, string $body = '<foo>bar</foo>' ]) : Connector
Parameters
$expectedUri : string

URI expected by client.

$body : string = '<foo>bar</foo>'

Response body returned by client.

Return values
Connector

Search results