/** * @group unit */ public function testSetLikeText() { $query = new MoreLikeThis(); $query->setLikeText(' hello world'); $data = $query->toArray(); $this->assertEquals('hello world', $data['more_like_this']['like_text']); }
/** * @group unit * @expectedException \Elastica\Exception\DeprecatedException */ public function testSetLikeText() { $query = new MoreLikeThis(); $query->setLikeText(' hello world'); }