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)); }
public function testGetGroups() { $this->assertEquals($this->_items, $this->_grouping->getGroups()); }