diff --git a/tests/src/python/test_qgsserver_wms_getlegendgraphic.py b/tests/src/python/test_qgsserver_wms_getlegendgraphic.py index 6a966caf943..06feb6cd0bb 100644 --- a/tests/src/python/test_qgsserver_wms_getlegendgraphic.py +++ b/tests/src/python/test_qgsserver_wms_getlegendgraphic.py @@ -1254,7 +1254,7 @@ class TestQgsServerWMSGetLegendGraphic(TestQgsServerWMSTestBase): self.wms_request_compare("GetLegendGraphic", "&LAYERS=testlayer%20%C3%A8%C3%A9,testlayer3" "&FORMAT=application/json", - ["wms_getlegendgraphic_json_multiple_layers", "wms_getlegendgraphic_json_multiple_layers2"]) + ["wms_getlegendgraphic_json_multiple_layers", "wms_getlegendgraphic_json_multiple_layers2", "wms_getlegendgraphic_json_multiple_layers3"]) def test_wms_GetLegendGraphic_JSON_multiple_symbol(self): self.wms_request_compare("GetLegendGraphic", diff --git a/tests/testdata/qgis_server/wms_getlegendgraphic_json_multiple_layers3.txt b/tests/testdata/qgis_server/wms_getlegendgraphic_json_multiple_layers3.txt new file mode 100644 index 00000000000..63b184ba506 --- /dev/null +++ b/tests/testdata/qgis_server/wms_getlegendgraphic_json_multiple_layers3.txt @@ -0,0 +1,4 @@ +***** +Content-Type: application/json + +{"nodes": [{"icon": "iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAUklEQVQ4jWNgGAV0A4z4JJWVlf8j8+/evYtTPQs+Q474qaKI2Wxi+I/LMKyC2AxBGHYbq8uYcLmIVDBEDLp79y6jzabbJBlEUvQzEEgCo4BOAAD7DRqVh2f6CwAAAABJRU5ErkJggg==", "title": "testlayer3", "type": "layer"}, {"icon": "iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAP0lEQVQ4jWNgGAV0A4wE5P8Tqx6fQf/TljijCMyK2YtTDy6DMAwhZBgTHheRBIaOQYzQsCAakBr9xOgZBbQGAKb+C8EdAkkoAAAAAElFTkSuQmCC", "title": "A test vector layer", "type": "layer"}], "title": ""}