/** * Remove a single exclude tag * * 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 removeExclude method of a * specific FacetQuery instance instead. * * @param string $exclude * @return Solarium_Query_Select_Component_Facet_MultiQuery Provides fluent interface */ public function removeExclude($exclude) { foreach ($this->_facetQueries as $facetQuery) { $facetQuery->removeExclude($exclude); } return parent::removeExclude($exclude); }
public function testRemoveExclude() { $this->_facet->addExcludes(array('e1', 'e2')); $this->_facet->removeExclude('e1'); $this->assertEquals(array('e2'), $this->_facet->getExcludes()); }