Example #1
0
 public function testRemoveComponentWithObjectInput()
 {
     $mlt = new MoreLikeThis();
     $this->query->setComponent('mlt', $mlt);
     $this->assertEquals(array('mlt' => $mlt), $this->query->getComponents());
     $this->query->removeComponent($mlt);
     $this->assertEquals(array(), $this->query->getComponents());
 }