protected function SearchApiElasticsearchBaseTest::createIndex in Search API Elasticsearch 7
Create Search API index.
3 calls to SearchApiElasticsearchBaseTest::createIndex()
- 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 27 - Contains base test class for Search API Elasticsearch.
Class
- SearchApiElasticsearchBaseTest
- @file Contains base test class for Search API Elasticsearch.
Code
protected function createIndex($name = 'test', $type, $server, $options = array()) {
return $this->_index = entity_create('search_api_index', array(
'name' => $name,
'machine_name' => $name,
'enabled' => 1,
'item_type' => $type,
'server' => $server,
'options' => $options,
));
}