public function testDefaults() { $field = "foo"; $op = "bar"; $select = new Select(); $select->defaultField($field)->defaultOperator($op); $this->assertEquals('df=foo&q.op=bar', $select->render()); }
/** * Returns the path, including the query string, for a given select query. * * @param Select $select * * @return string */ public function selectPath(Select $select) { $query = $select->render(); return "{$this->name}/select?{$query}"; }