VuFind API Documentation

WriterTest extends TestCase
in package

Solr Utils 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

testCommit()  : void
Test commit
testDeleteAll()  : void
Test delete all
testDeleteRecords()  : void
Test delete records
testOptimize()  : void
Test optimize
testSave()  : void
Test save
testSaveWithNonDefaults()  : void
Test save with non-default parameters
getMockChangeTracker()  : MockObject|ChangeTrackerServiceInterface
Get mock change tracker service
getMockSearchService()  : MockObject|Service
Create a mock search service for a single command and its result
getWriter()  : Writer
Create a Writer for a single command and its result

Methods

testCommit()

Test commit

public testCommit() : void
Return values
void

testDeleteAll()

Test delete all

public testDeleteAll() : void
Return values
void

testDeleteRecords()

Test delete records

public testDeleteRecords() : void
Return values
void

testOptimize()

Test optimize

public testOptimize() : void
Return values
void

testSave()

Test save

public testSave() : void
Return values
void

testSaveWithNonDefaults()

Test save with non-default parameters

public testSaveWithNonDefaults() : void
Return values
void

getMockSearchService()

Create a mock search service for a single command and its result

protected getMockSearchService(object $expectedCommand, mixed $result) : MockObject|Service
Parameters
$expectedCommand : object

Expected command class

$result : mixed

Result to return for the invoked command

Return values
MockObject|Service

getWriter()

Create a Writer for a single command and its result

protected getWriter(object $expectedCommand[, mixed $result = 'TEST' ]) : Writer
Parameters
$expectedCommand : object

Expected command class

$result : mixed = 'TEST'

Result to return for the invoked command

Return values
Writer

Search results