/** * Remove all excludes * * Excludes added to the MultiQuery facet a shared by all underlying * FacetQueries, so changes must be forwarded to any existing instances. * * If you don't want this use the clearExcludes method of a * specific FacetQuery instance instead. * * @return Solarium_Query_Select_Component_Facet_MultiQuery Provides fluent interface */ public function clearExcludes() { foreach ($this->_facetQueries as $facetQuery) { $facetQuery->clearExcludes(); } return parent::clearExcludes(); }
public function testClearExcludes() { $this->_facet->addExcludes(array('e1', 'e2')); $this->_facet->clearExcludes(); $this->assertEquals(array(), $this->_facet->getExcludes()); }