Ejemplo n.º 1
0
 public function testArgArrayFieldsOverwrittenBySetParams()
 {
     $query = new FuzzyLikeThis();
     $query->setMaxQueryTerms(100);
     $query->setParam('max_query_terms', 200);
     $data = $query->toArray();
     $this->assertEquals(200, $data['fuzzy_like_this']['max_query_terms']);
 }
Ejemplo n.º 2
0
 public function testSetBoost()
 {
     $query = new FuzzyLikeThis();
     $boost = 2.2;
     $query->setBoost($boost);
     $data = $query->toArray();
     $this->assertEquals($boost, $data['fuzzy_like_this']['boost']);
 }