public function SearchApiSolrTest::testBackend in Search API Solr 8
Tests various indexing scenarios for the Solr search backend.
Overrides BackendTestBase::testBackend
File
- tests/
src/ Kernel/ SearchApiSolrTest.php, line 137
Class
- SearchApiSolrTest
- Tests index and search capabilities using the Solr search backend.
Namespace
Drupal\Tests\search_api_solr\KernelCode
public function testBackend() {
// Only run the tests if we have a Solr core available.
if ($this->solrAvailable) {
parent::testBackend();
}
else {
$this
->assertTrue(TRUE, 'Error: The Solr instance could not be found. Please enable a multi-core one on http://localhost:8983/solr/drupal');
}
}