VuFind API Documentation

ExportTest extends TestCase
in package
Uses WithConsecutiveTrait

Export Support 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

testGetActiveFormats()  : void
Test active formats.
testGetBulkExportType()  : void
Test getBulkExportType()
testGetBulkOptionsLegacy()  : void
Test options using legacy (deprecated) configuration.
testGetBulkUrl()  : void
Test getBulkUrl() method
testGetFormatsForRecord()  : void
Test getFormatsForRecord
testGetFormatsForRecords()  : void
Test getFormatsForRecords
testGetHeaders()  : void
Test getHeaders
testGetLabel()  : void
Test getLabelForFormat
testGetPostField()  : void
Test getPostField()
testGetRedirectUrl()  : void
Test getRedirectUrl
testGetTargetWindow()  : void
Test getTargetWindow()
testNeedsRedirect()  : void
Test "needs redirect"
testProcessGroupNonXML()  : void
Test non-XML case of process group
testProcessGroupXML()  : void
Test XML case of process group
testRecordSupportsFormat()  : void
Test recordSupportsFormat
expectConsecutiveCalls()  : InvocationStubber
Expect consecutive calls to a mock.
getExport()  : Export
Get a configured Export object.
getFakeMARCXML()  : string
Get a fake MARCXML record

Methods

testGetActiveFormats()

Test active formats.

public testGetActiveFormats() : void
Return values
void

testGetBulkExportType()

Test getBulkExportType()

public testGetBulkExportType() : void
Return values
void

testGetBulkOptionsLegacy()

Test options using legacy (deprecated) configuration.

public testGetBulkOptionsLegacy() : void
Return values
void

testGetBulkUrl()

Test getBulkUrl() method

public testGetBulkUrl() : void
Return values
void

testGetFormatsForRecord()

Test getFormatsForRecord

public testGetFormatsForRecord() : void
Return values
void

testGetFormatsForRecords()

Test getFormatsForRecords

public testGetFormatsForRecords() : void
Return values
void

testGetHeaders()

Test getHeaders

public testGetHeaders() : void
Return values
void

testGetLabel()

Test getLabelForFormat

public testGetLabel() : void
Return values
void

testGetPostField()

Test getPostField()

public testGetPostField() : void
Return values
void

testGetRedirectUrl()

Test getRedirectUrl

public testGetRedirectUrl() : void
Return values
void

testGetTargetWindow()

Test getTargetWindow()

public testGetTargetWindow() : void
Return values
void

testNeedsRedirect()

Test "needs redirect"

public testNeedsRedirect() : void
Return values
void

testProcessGroupNonXML()

Test non-XML case of process group

public testProcessGroupNonXML() : void
Return values
void

testProcessGroupXML()

Test XML case of process group

public testProcessGroupXML() : void
Return values
void

testRecordSupportsFormat()

Test recordSupportsFormat

public testRecordSupportsFormat() : void
Return values
void

expectConsecutiveCalls()

Expect consecutive calls to a mock.

protected expectConsecutiveCalls(MockObject $mock, string $method, array<string|int, mixed> $expectedCalls[, mixed $returnValues = null ]) : InvocationStubber
Parameters
$mock : MockObject

Mock object

$method : string

Method expecting calls

$expectedCalls : array<string|int, mixed>

Expected input parameters

$returnValues : mixed = null

Return values to mock (either an array indexed parallel to $expectedCalls to return different values, or a single value to always return the same thing)

Return values
InvocationStubber

getExport()

Get a configured Export object.

protected getExport([array<string|int, mixed> $main = [] ][, array<string|int, mixed> $export = [] ]) : Export
Parameters
$main : array<string|int, mixed> = []

Main config

$export : array<string|int, mixed> = []

Export config

Return values
Export

getFakeMARCXML()

Get a fake MARCXML record

protected getFakeMARCXML(string $id) : string
Parameters
$id : string

ID to put in record.

Return values
string

Search results