public function SearchApiElasticsearchElasticaTest::testAddIndex in Search API Elasticsearch 7
testAddIndex
@dataProvider transportProvider @access public
Return value
void
File
- modules/
elastica/ tests/ phpunit/ SearchApiElasticsearchElasticaTest.php, line 104 - Contains tests for SearchApiElasticsearchElastica.
Class
- SearchApiElasticsearchElasticaTest
- @file Contains tests for SearchApiElasticsearchElastica.
Code
public function testAddIndex($transport) {
$this->_client
->setTransport($transport);
$this->_client
->addIndex($this->_index);
$this
->assertSame('elasticsearch_index_drupal_elastica_test_index', $this->_client
->getElasticaIndex($this->_index)
->getName(), 'Expected "elasticsearch_index_drupal_elastica_test_index". Found ' . $this->_client
->getElasticaIndex($this->_index)
->getName());
}