protected function AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable in Apache Solr Search 7
Same name and namespace in other branches
- 8 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
- 6.3 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
1 call to AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
File
- tests/
solr_index_and_search.test, line 104
Class
Code
protected function coreAdminAvailable() {
$url = url($this->core_admin_url, array(
'query' => array(
'action' => 'STATUS',
),
));
$options['timeout'] = 2;
$result = drupal_http_request($url, $options);
return $result->code == 200 && empty($result->error);
}