\OLLayerTest
- Author: Rainer Spittel (rainer at silverstripe dot com)
Synopsis
class OLLayerTest
extends SapphireTest
{
- // members
- public static string $test_controller = 'ReflectionProxy_Controller/doprocess';
- // methods
- public void setUp()
- public void tearDown()
- public void testGetCMSFields()
- public void testGetWFSFeatureRequest_invalidLayer()
- public void testGetWFSFeatureRequest()
- public void testGetWFSFeatureRequest_WithMapName()
- public void testGetWMSFeatureRequest_invalidLayer()
- public void testGetWMSFeatureRequest_invalidLayer_test1()
- public void testGetWMSFeatureRequest_invalidLayer_test2()
- public void testGetWMSFeatureRequest_invalidLayer_test3()
- public void testGetWMSFeatureRequest_invalidLayer_test4()
- public void testGetWMSFeatureRequest_invalidLayer_test5()
- public void testGetWMSFeatureRequest_invalidLayer_test6()
- public void testGetWMSFeatureRequest_no_map()
- public void testGetWMSFeatureRequest_map()
- public void testGetConfigurationArrayWFS()
- public void testGetConfigurationArrayWMS()
- public void testGetConfigurationArrayEmpty()
- public void testLayerException()
- public void testGetFeatureInfo_InvalidParameterType()
- public void testGetFeatureInfo_Invalid()
- public void testGetFeatureInfo_WFS()
- public void testGetFeatureInfo_WMS_InvalidParams()
- public void testGetFeatureInfo_WMS()
- public void testGetFeatureInfo_wmsUntiled()
- public void testWhiteList()
- public void testWhiteListLabels()
Hierarchy
Extends
- SapphireTest
Members
public
- $test_controller
Methods
public
- setUp() — Initiate the controller and page classes and configure GeoNetwork service to use the mockup-controller for testing.
- tearDown()
- testGetCMSFields() — Basic test to see if getCMSFields returns a fieldset.
- testGetConfigurationArrayEmpty() — Test response which an empty layer object
- testGetConfigurationArrayWFS() — Test response which an wfs layer object
- testGetConfigurationArrayWMS() — Test response which an wfs layer object
- testGetFeatureInfo_Invalid() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods, sends the HTTP request to the OGC server and returns the server response.
- testGetFeatureInfo_InvalidParameterType() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods without the require parameters.
- testGetFeatureInfo_WFS() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods, sends the HTTP request to the OGC server and returns the server response.
- testGetFeatureInfo_WMS() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods, sends the HTTP request to the OGC server and returns the server response.
- testGetFeatureInfo_WMS_InvalidParams() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods, sends the HTTP request to the OGC server and returns the server response.
- testGetFeatureInfo_wmsUntiled() — Test the business logic around GetFeatureInfo. This method calls getWFS/WMSFeature methods, sends the HTTP request to the OGC server and returns the server response.
- testGetWFSFeatureRequest() — Test WFS get-feature support (test with valid layer, no map-path)
- testGetWFSFeatureRequest_WithMapName() — Test WFS get-feature support (test with valid layer, with map-path)
- testGetWFSFeatureRequest_invalidLayer() — Test WFS get-feature support (test with invalid layer)
- testGetWMSFeatureRequest_invalidLayer()
- testGetWMSFeatureRequest_invalidLayer_test1()
- testGetWMSFeatureRequest_invalidLayer_test2()
- testGetWMSFeatureRequest_invalidLayer_test3()
- testGetWMSFeatureRequest_invalidLayer_test4()
- testGetWMSFeatureRequest_invalidLayer_test5()
- testGetWMSFeatureRequest_invalidLayer_test6()
- testGetWMSFeatureRequest_map() — Test WMS request without mapname
- testGetWMSFeatureRequest_no_map() — Test WMS request without mapname
- testLayerException() — Test if the OLLayer_Exception class exist.
- testWhiteList()
- testWhiteListLabels()