Example #1
0
 public function testQueryGroupParsing()
 {
     $queryGroup = $this->result->getGroup('cat:1');
     $this->assertEquals(40, $queryGroup->getMatches());
     $this->assertEquals(22, $queryGroup->getNumFound());
     $docs = $queryGroup->getDocuments();
     $this->assertEquals('dummy5', $docs[1]->name);
 }
 public function testGetGroupInvalid()
 {
     $this->assertEquals(null, $this->grouping->getGroup('invalidkey'));
 }