You are here

protected function SearchApiDbTest::drupalGet in Search API Database Search 7

Retrieves a Drupal path or an absolute path.

Parameters

$path: Drupal path or URL to load into internal browser

$options: Options to be forwarded to url().

$headers: An array containing additional HTTP request headers, each formatted as "name: value".

Return value

The retrieved HTML string, also available as $this->drupalGetContent()

Overrides DrupalWebTestCase::drupalGet

2 calls to SearchApiDbTest::drupalGet()
SearchApiDbTest::insertItems in ./search_api_db.test
SearchApiDbTest::regressionTests2 in ./search_api_db.test
Executes regression tests which are unpractical to run in between.

File

./search_api_db.test, line 16

Class

SearchApiDbTest
Class for testing index and search capabilities using the Database search module.

Code

protected function drupalGet($path, array $options = array(), array $headers = array()) {
  $ret = parent::drupalGet($path, $options, $headers);
  $this
    ->assertResponse(200, t('HTTP code 200 returned.'));
  return $ret;
}