/** * @return \Mapbender\SearchBundle\Entity\Query */ public function getMockupQuery() { $queryConditionArgs = array("fieldName" => "name", "operator" => "LIKE", "value" => "Matthias", "sql" => ""); $queryCondition = new QueryCondition($queryConditionArgs); $queryConditions = array($queryCondition); $styleMap = new StyleMap(); $queryArgs = array("name" => "Test", "conditions" => $queryConditions, "styleMap" => $styleMap); return $this->queryManager->create($queryArgs); }
/** * @return Query */ protected function getQuery() { $mockUpStyleMap = $this->getMockUpStyleMap(); $this->queryArgs["styleMap"] = $this->styleMapManager->create($mockUpStyleMap)->getId(); $query = $this->queryManager->create($this->queryArgs); return $query; }