protected function AbstractDrupalSolrOnlineWebTestCase::getSolrVersion in Apache Solr Search 7
Same name and namespace in other branches
- 8 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::getSolrVersion()
- 6.3 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::getSolrVersion()
1 call to AbstractDrupalSolrOnlineWebTestCase::getSolrVersion()
File
- tests/
solr_index_and_search.test, line 111
Class
Code
protected function getSolrVersion() {
$status = $this
->coreAdmin('STATUS');
foreach ($status['status'] as $core_id => $core) {
$solr = new DrupalApacheSolrService($this->base_solr_url . '/' . $core_id);
$version = $solr
->getSolrVersion();
if (!empty($version)) {
return $version;
}
else {
return "1";
}
}
}