public function testAddAndGetParams() { $query = new TestQuery(); $query->addParam('p1', 'v1'); $query->addParam('p2', 'v2'); $query->addParam('p2', 'v3'); //should overwrite previous value $this->assertEquals(array('p1' => 'v1', 'p2' => 'v3'), $query->getParams()); }
public function testGetHelper() { $query = new TestQuery(); $helper = $query->getHelper(); $this->assertEquals('Solarium_Query_Helper', get_class($helper)); }