[Mapbender-commits] r6919 - trunk/mapbender/test/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Sep 20 09:28:06 EDT 2010
Author: christoph
Date: 2010-09-20 13:28:06 +0000 (Mon, 20 Sep 2010)
New Revision: 6919
Modified:
trunk/mapbender/test/http/classes/GetApiTest.php
Log:
refactoring GET-API 0.2.3
Modified: trunk/mapbender/test/http/classes/GetApiTest.php
===================================================================
--- trunk/mapbender/test/http/classes/GetApiTest.php 2010-09-15 14:59:57 UTC (rev 6918)
+++ trunk/mapbender/test/http/classes/GetApiTest.php 2010-09-20 13:28:06 UTC (rev 6919)
@@ -47,15 +47,15 @@
}
public function testMultipleLayerComplex () {
- parse_str("LAYER[visible]=false&LAYER[zoom]=true&LAYER[application]=gui1&LAYER[id]=12", $getArray);
+ parse_str("LAYER[visible]=0&LAYER[zoom]=1&LAYER[application]=gui1&LAYER[id]=12", $getArray);
$apiObject = new GetApi($getArray);
$expected = array(
array(
"id" => 12,
"application" => "gui1",
- "visible" => false,
- "zoom" => true
+ "visible" => 0,
+ "zoom" => 1
)
);
$this->assertEquals($expected, $apiObject->getLayers());
@@ -104,13 +104,13 @@
}
public function testMultipleFeaturetypesArrayComplex () {
- parse_str("FEATURETYPE[active]=false&FEATURETYPE[search][firstname]=a&FEATURETYPE[search][lastname]=b&FEATURETYPE[id]=12", $getArray);
+ parse_str("FEATURETYPE[active]=0&FEATURETYPE[search][firstname]=a&FEATURETYPE[search][lastname]=b&FEATURETYPE[id]=12", $getArray);
$apiObject = new GetApi($getArray);
$expected = array(
array(
"id" => 12,
- "active" => false,
+ "active" => 0,
"search" => array(
"firstname" => "a",
"lastname" => "b"
More information about the Mapbender_commits
mailing list