public function testWithTags()
 {
     $this->query->setTags(array('t1', 't2'));
     $this->query->setQuery('cat:1');
     $request = $this->builder->build($this->query);
     $this->assertEquals('{!tag=t1,t2}cat:1', $request->getParam('q'));
 }
Example #2
0
 public function testSetTags()
 {
     $this->query->addTags(array('t1', 't2'));
     $this->query->setTags(array('t3', 't4'));
     $this->assertEquals(array('t3', 't4'), $this->query->getTags());
 }