Beispiel #1
0
 public function testRemoveInvalidField()
 {
     $f1 = new Solarium_Query_Select_Component_Stats_Field();
     $f1->setKey('f1');
     $f2 = new Solarium_Query_Select_Component_Stats_Field();
     $f2->setKey('f2');
     $fields = array('f1' => $f1, 'f2' => $f2);
     $this->_stats->addFields($fields);
     $this->_stats->removeField('f3');
     //continue silently
     $this->assertEquals($fields, $this->_stats->getFields());
 }