public function testSetFacets() { $this->field->clearFacets(); $this->field->addFacets(array('facet1', 'facet2')); $this->field->setFacets(array('facet3', 'facet4')); $this->assertEquals(array('facet3', 'facet4'), $this->field->getFacets()); }