VuFind API Documentation

InstallCommandTest extends TestCase
in package
Uses WithConsecutiveTrait

Install command test.

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

skipBackupsProvider()  : array<string|int, array<string|int, mixed>>
Data provider for testing with or without the skip-backups flag.
testInteractiveInstallation()  : void
Test the interactive installation process.
testInvalidSolrPort()  : void
Test that providing an invalid Solr port number causes an error.
testNonInteractiveInstallation()  : void
Test the non-interactive installation process.
expectConsecutiveCalls()  : InvocationStubber
Expect consecutive calls to a mock.
getMockCommand()  : InstallCommand|MockObject
Get a mock command object

Methods

skipBackupsProvider()

Data provider for testing with or without the skip-backups flag.

public static skipBackupsProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

testInteractiveInstallation()

Test the interactive installation process.

public testInteractiveInstallation(bool $skipBackups) : void
Parameters
$skipBackups : bool

Should we test with backups disabled?

Tags
dataProvider

skipBackupsProvider

Return values
void

testInvalidSolrPort()

Test that providing an invalid Solr port number causes an error.

public testInvalidSolrPort() : void
Return values
void

testNonInteractiveInstallation()

Test the non-interactive installation process.

public testNonInteractiveInstallation() : 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

getMockCommand()

Get a mock command object

protected getMockCommand([array<string|int, mixed> $methods = ['buildDirs', 'getInput', 'writeFileToDisk'] ]) : InstallCommand|MockObject
Parameters
$methods : array<string|int, mixed> = ['buildDirs', 'getInput', 'writeFileToDisk']

Methods to mock

Return values
InstallCommand|MockObject

Search results