public function SearchApiElasticsearchElasticaBaseTest::transportProvider in Search API Elasticsearch 7
Provides transports to test against.
Overrides SearchApiElasticsearchBaseTest::transportProvider
1 method overrides SearchApiElasticsearchElasticaBaseTest::transportProvider()
- SearchApiElasticsearchElasticaTest::transportProvider in modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaTest.php - Provides transports to test against.
File
- modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaBaseTest.php, line 8
Class
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;
}