You are here

abstract class SearchApiElasticsearchElasticaBaseTest in Search API Elasticsearch 7

Hierarchy

Expanded class hierarchy of SearchApiElasticsearchElasticaBaseTest

File

modules/elastica/tests/phpunit/SearchApiElasticsearchElasticaBaseTest.php, line 3

View source
abstract class SearchApiElasticsearchElasticaBaseTest extends SearchApiElasticsearchBaseTest {

  /**
   * Provides transports to test against.
   */
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SearchApiElasticsearchBaseTest::createIndex protected function Create Search API index.
SearchApiElasticsearchBaseTest::createServer protected function Create Search API server.
SearchApiElasticsearchElasticaBaseTest::transportProvider public function Provides transports to test against. Overrides SearchApiElasticsearchBaseTest::transportProvider 1