Beispiel #1
0
 public function testRemoveInvalidFacet()
 {
     $fq1 = new FacetQuery();
     $fq1->setKey('f1')->setQuery('category:1');
     $fq2 = new FacetQuery();
     $fq2->setKey('f2')->setQuery('category:2');
     $facets = array('f1' => $fq1, 'f2' => $fq2);
     $this->facetSet->addFacets($facets);
     $this->facetSet->removeFacet('f3');
     //continue silently
     $this->assertEquals($facets, $this->facetSet->getFacets());
 }