You are here

protected function AbstractDrupalSolrOnlineWebTestCase::checkCoreStatus in Apache Solr Search 8

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

Helper function to verify that the expected core exists.

1 call to AbstractDrupalSolrOnlineWebTestCase::checkCoreStatus()
AbstractDrupalSolrOnlineWebTestCase::setUpSolr in tests/solr_index_and_search.test

File

tests/solr_index_and_search.test, line 146

Class

AbstractDrupalSolrOnlineWebTestCase

Code

protected function checkCoreStatus($core_name) {
  $response = $this
    ->coreAdmin('STATUS', array(
    'core' => $core_name,
  ));
  $this
    ->assertTrue(isset($response['status'][$core_name]['index']), 'Found Solr test core index status');
}