public function testConfigMode() { $options = array('facet' => array(array('type' => 'query', 'key' => 'f1', 'query' => 'category:1'), 'f2' => array('type' => 'query', 'query' => 'category:2')), 'prefix' => 'pr', 'sort' => 'index', 'mincount' => 10, 'missing' => 5, 'extractfromresponse' => true); $this->facetSet->setOptions($options); $facets = $this->facetSet->getFacets(); $this->assertEquals(2, count($facets)); $this->assertEquals($options['prefix'], $this->facetSet->getPrefix()); $this->assertEquals($options['sort'], $this->facetSet->getSort()); $this->assertEquals($options['mincount'], $this->facetSet->getMincount()); $this->assertEquals($options['missing'], $this->facetSet->getMissing()); $this->assertEquals($options['extractfromresponse'], $this->facetSet->getExtractFromResponse()); }