protected function SearchApiElasticsearchBaseTest::createServer in Search API Elasticsearch 7
Create Search API server.
3 calls to SearchApiElasticsearchBaseTest::createServer()
- SearchApiElasticsearchElasticaFacetTest::setUp in modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaFacetTest.php - SearchApiElasticsearchElasticaMoreLikeThisTest::setUp in modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaMoreLikeThisTest.php - setUp
- SearchApiElasticsearchElasticaTest::setUp in modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaTest.php - setUp
File
- tests/
phpunit/ SearchApiElasticsearchBaseTest.php, line 13 - Contains base test class for Search API Elasticsearch.
Class
- SearchApiElasticsearchBaseTest
- @file Contains base test class for Search API Elasticsearch.
Code
protected function createServer($name = 'test', $class, $options = array()) {
return $this->_server = entity_create('search_api_server', array(
'name' => $name,
'machine_name' => $name,
'class' => $class,
'options' => $options,
'enabled' => 1,
'status' => 1,
));
}