protected function SearchApiSolrTest::indexPrefixTest in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::indexPrefixTest()
- 4.x tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::indexPrefixTest()
1 call to SearchApiSolrTest::indexPrefixTest()
- SearchApiSolrTest::backendSpecificRegressionTests in tests/
src/ Kernel/ SearchApiSolrTest.php - Runs backend specific regression tests.
File
- tests/
src/ Kernel/ SearchApiSolrTest.php, line 71
Class
- SearchApiSolrTest
- Tests index and search capabilities using the Solr search backend.
Namespace
Drupal\Tests\search_api_solr\KernelCode
protected function indexPrefixTest() {
$backend = Server::load($this->serverId)
->getBackend();
$index = $this
->getIndex();
$prefixed_index_id = $this
->invokeMethod($backend, 'getIndexId', [
$index,
]);
$this
->assertEquals('server_prefixindex_prefix' . $index
->id(), $prefixed_index_id);
}