Exemplo n.º 1
0
 public function testDefaults()
 {
     $field = "foo";
     $op = "bar";
     $select = new Select();
     $select->defaultField($field)->defaultOperator($op);
     $this->assertEquals('df=foo&q.op=bar', $select->render());
 }
Exemplo n.º 2
0
 /**
  * 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}";
 }