Exemplo n.º 1
0
 public function testRemoveComponentWithObjectInput()
 {
     $mlt = new Solarium_Query_Select_Component_MoreLikeThis();
     $this->_query->setComponent('mlt', $mlt);
     $this->assertEquals(array('mlt' => $mlt), $this->_query->getComponents());
     $this->_query->removeComponent($mlt);
     $this->assertEquals(array(), $this->_query->getComponents());
 }