VuFind API Documentation

TOCTest extends TestCase
in package
Uses WithConsecutiveTrait

TOC Test Class

Tags
category

VuFind

author

Sudharma Kellampalli skellamp@villanova.edu

license

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

link

Wiki

Table of Contents

isActiveProvider()  : array<string|int, mixed>
Data provider for testIsActive.
testGetDescription()  : void
Test getting Description.
testIsActive()  : void
Test if the tab is active.
expectConsecutiveCalls()  : InvocationStubber
Expect consecutive calls to a mock.

Methods

isActiveProvider()

Data provider for testIsActive.

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

testGetDescription()

Test getting Description.

public testGetDescription() : void
Return values
void

testIsActive()

Test if the tab is active.

public testIsActive(string $toc, bool $expectedResult) : void
Parameters
$toc : string

TOC from record driver

$expectedResult : bool

Expected return value from isActive

Tags
dataProvider

isActiveProvider

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

Search results