public function testAddExclude() { $this->facet->addExclude('e1'); $this->assertEquals(array('e1'), $this->facet->getExcludes()); }
/** * Add an exclude tag * * Excludes added to the MultiQuery facet a shared by all underlying * FacetQueries, so they must be forwarded to any existing instances. * * If you don't want to share an exclude use the addExclude method of a * specific FacetQuery instance instead. * * @param string $tag * @return self Provides fluent interface */ public function addExclude($tag) { foreach ($this->facetQueries as $facetQuery) { $facetQuery->addExclude($tag); } return parent::addExclude($tag); }