public function testConfigMode() { $options = array('key' => 'myKey', 'exclude' => array('e1', 'e2'), 'field' => 'content', 'start' => 1, 'end' => 100, 'gap' => 10, 'hardend' => true, 'other' => 'all', 'include' => 'lower'); $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['start'], $this->facet->getStart()); $this->assertEquals($options['end'], $this->facet->getEnd()); $this->assertEquals($options['gap'], $this->facet->getGap()); $this->assertEquals($options['hardend'], $this->facet->getHardend()); $this->assertEquals(array($options['other']), $this->facet->getOther()); $this->assertEquals(array($options['include']), $this->facet->getInclude()); }