MapTest
extends TestCase
in package
Uses
WithConsecutiveTrait
Map Test Class
Tags
Table of Contents
- getMap() : Map
- Get a Map object
- testGetBasemap() : void
- Test getting basemap Configuration.
- testGetDescription() : void
- Test getting Description.
- testGetDisplayCoords() : void
- Test get map display coordinates.
- testGetGeoLocationCoords() : void
- Test geo-location coordinates.
- testGetMapGraticule() : void
- Test getting Graticule.
- testGetMapTabData() : void
- Test construction of map-coordinates adn labels.
- testIsActive() : void
- Test if the tab is Active.
- testSupportsAjax() : void
- Test if the tab loaded via AJAX.
- expectConsecutiveCalls() : InvocationStubber
- Expect consecutive calls to a mock.
Methods
getMap()
Get a Map object
public
getMap() : Map
Return values
Map —testGetBasemap()
Test getting basemap Configuration.
public
testGetBasemap() : void
Return values
void —testGetDescription()
Test getting Description.
public
testGetDescription() : void
Return values
void —testGetDisplayCoords()
Test get map display coordinates.
public
testGetDisplayCoords() : void
Return values
void —testGetGeoLocationCoords()
Test geo-location coordinates.
public
testGetGeoLocationCoords() : void
Return values
void —testGetMapGraticule()
Test getting Graticule.
public
testGetMapGraticule() : void
Return values
void —testGetMapTabData()
Test construction of map-coordinates adn labels.
public
testGetMapTabData() : void
Return values
void —testIsActive()
Test if the tab is Active.
public
testIsActive() : void
Return values
void —testSupportsAjax()
Test if the tab loaded via AJAX.
public
testSupportsAjax() : 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)