public function testConfigMode() { $options = array('key' => 'myKey', 'exclude' => array('e1', 'e2'), 'field' => 'text', 'sort' => 'index', 'limit' => 10, 'offset' => 20, 'mincount' => 5, 'missing' => true, 'method' => 'enum'); $this->_facet->setOptions($options); $this->assertEquals($options['key'], $this->_facet->getKey()); $this->assertEquals($options['exclude'], $this->_facet->getExcludes()); $this->assertEquals($options['field'], $this->_facet->getField()); $this->assertEquals($options['sort'], $this->_facet->getSort()); $this->assertEquals($options['limit'], $this->_facet->getLimit()); $this->assertEquals($options['offset'], $this->_facet->getOffset()); $this->assertEquals($options['mincount'], $this->_facet->getMinCount()); $this->assertEquals($options['missing'], $this->_facet->getMissing()); $this->assertEquals($options['method'], $this->_facet->getMethod()); }