protected function setUp() { $this->styleManager = $this->getStyleManager(); $this->queryManager = $this->getQueryManager(); $this->styleMapManager = $this->getStyleMapManager(); $this->featureManager = $this->getFeatureTypeManager(); $this->styleManager->createDB(); $this->queryManager->createDB(); $this->styleMapManager->createDB(); $this->styleData = array("name" => "DefaultStyle", "borderSize" => 5, "borderColor" => "0c0c0c", "borderAlpha" => 255, "backgroundSize" => 41, "backgroundAlpha" => 255, "backgroundColor" => "fc0c0c", "graphicWidth" => "100px", "graphicHeight" => "100px", "graphicOpacity" => "50%", "graphicXOffset" => "40px", "graphicYOffset" => "20px", "graphicName" => "DefaultGraphic", "externalGraphic" => "\$(default)", "fillOpacity" => "50%", "fillColor" => "#411232", "strokeColor" => "#dcc23a", "strokeOpacity" => "30%", "strokeWidth" => "3px"); $this->featureTypeDeclaration = $this->featureManager->getFeatureTypeDeclarations(); $lastFeatureType = end($this->featureTypeDeclaration); $lastFeatureTypeId = $lastFeatureType["id"]; $queryConditionArgs = array("name" => "Big money", "fieldName" => "money", "operator" => ">", "value" => "1000"); $queryConditions = new QueryCondition($queryConditionArgs); $fieldArgs = array("name" => "Fieldname", "description" => "Some field description"); $field = new Field($fieldArgs); $this->queryArgs = array("name" => "QueryName", "conditions" => $queryConditions, "fields" => array($field), "featureType" => $lastFeatureTypeId, "sql" => "SELECT * from QUERIES"); }