You are here

protected function AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
  2. 7 tests/solr_index_and_search.test \AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
1 call to AbstractDrupalSolrOnlineWebTestCase::coreAdminAvailable()
AbstractDrupalSolrOnlineWebTestCase::setUpSolr in tests/solr_index_and_search.test

File

tests/solr_index_and_search.test, line 104

Class

AbstractDrupalSolrOnlineWebTestCase

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);
}