예제 #1
0
 public function testGroupParsing()
 {
     $this->assertEquals(2, count($this->_result->getGroups()));
     $fieldGroup = $this->_result->getGroup('fieldA');
     $queryGroup = $this->_result->getGroup('cat:1');
     $this->assertEquals('Solarium_Result_Select_Grouping_FieldGroup', get_class($fieldGroup));
     $this->assertEquals('Solarium_Result_Select_Grouping_QueryGroup', get_class($queryGroup));
 }
예제 #2
0
 public function testGetGroups()
 {
     $this->assertEquals($this->_items, $this->_grouping->getGroups());
 }