You are here

public function SearchApiElasticsearchElasticaTest::transportProvider in Search API Elasticsearch 7

Provides transports to test against.

Overrides SearchApiElasticsearchElasticaBaseTest::transportProvider

File

modules/elastica/tests/phpunit/SearchApiElasticsearchElasticaTest.php, line 351
Contains tests for SearchApiElasticsearchElastica.

Class

SearchApiElasticsearchElasticaTest
@file Contains tests for SearchApiElasticsearchElastica.

Code

public function transportProvider() {
  $options = array(
    array(
      'Http',
    ),
    array(
      'Https',
    ),
    array(
      'Memcache',
    ),
    array(
      'Null',
    ),
  );
  if (class_exists('\\GuzzleHttp\\Client')) {
    $options[] = array(
      'Guzzle',
    );
  }
  if (class_exists('\\Elasticsearch\\RestClient')) {
    $options[] = array(
      'Thrift',
    );
  }
  return $options;
}