setQueryParser('dummyparser'); $component->setQueryAlternative('test'); $component->setQueryFields('content,name'); $component->setMinimumMatch('75%'); $component->setPhraseFields('content,description'); $component->setPhraseSlop(1); $component->setQueryPhraseSlop(2); $component->setTie(0.5); $component->setBoostQuery('cat:1'); $component->setBoostFunctions('functionX(price)'); $request = $builder->buildComponent($component, $request); $this->assertEquals( array( 'defType' => 'dummyparser', 'q.alt' => 'test', 'qf' => 'content,name', 'mm' => '75%', 'pf' => 'content,description', 'ps' => 1, 'qs' => 2, 'tie' => 0.5, 'bq' => 'cat:1', 'bf' => 'functionX(price)', ), $request->getParams() ); } }