public function testRemoveExclude() { $this->facet->addExcludes(array('e1', 'e2')); $this->facet->removeExclude('e1'); $this->assertEquals(array('e2'), $this->facet->getExcludes()); }
/** * 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 self Provides fluent interface */ public function removeExclude($exclude) { foreach ($this->facetQueries as $facetQuery) { $facetQuery->removeExclude($exclude); } return parent::removeExclude($exclude); }