You are here

public function SearchApiElasticsearchElasticaMoreLikeThisTest::testMoreLikeThis in Search API Elasticsearch 7

testMoreLikeThis

@access public @dataProvider transportProvider

Return value

void

File

modules/elastica/tests/phpunit/SearchApiElasticsearchElasticaMoreLikeThisTest.php, line 81
Contains tests for More Like This searches.

Class

SearchApiElasticsearchElasticaMoreLikeThisTest
@file Contains tests for More Like This searches.

Code

public function testMoreLikeThis($transport) {
  $this->_client
    ->setTransport($transport);
  $result_set = $this->_client
    ->search($this->_query);
  $this
    ->assertEquals(2, $result_set['result count']);
}