IndexTest
extends TestCase
in package
Uses
WithConsecutiveTrait
Index Plugin Test Class
Tags
Table of Contents
- testEmptyConfigs() : void
- Test that nothing happens if configuration is empty.
- testRetrieval() : void
- Test retrieving data from the index.
- expectConsecutiveCalls() : InvocationStubber
- Expect consecutive calls to a mock.
- getMockIdFetcher() : AbstractIdFetcher
- Get a mock ID fetcher
Methods
testEmptyConfigs()
Test that nothing happens if configuration is empty.
public
testEmptyConfigs() : void
Return values
void —testRetrieval()
Test retrieving data from the index.
public
testRetrieval() : 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 —getMockIdFetcher()
Get a mock ID fetcher
protected
getMockIdFetcher() : AbstractIdFetcher