You are here

protected function SearchApiWebTest::drupalPost in Search API 7

Overrides DrupalWebTestCase::drupalPost().

Additionally asserts that the HTTP request returned a 200 status code.

Overrides DrupalWebTestCase::drupalPost

10 calls to SearchApiWebTest::drupalPost()
SearchApiWebTest::checkIndexingOrder in ./search_api.test
Tests whether items are indexed in the right order.
SearchApiWebTest::checkServerTasks in ./search_api.test
Tests whether the server tasks system works correctly.
SearchApiWebTest::clearIndex in ./search_api.test
Tests whether clearing the index works correctly.
SearchApiWebTest::createIndex in ./search_api.test
Creates a test index via the UI and tests whether this works correctly.
SearchApiWebTest::createServer in ./search_api.test
Creates a test server via the UI and tests whether this works correctly.

... See full list

File

./search_api.test, line 52
Contains the SearchApiWebTest and the SearchApiUnitTest classes.

Class

SearchApiWebTest
Class for testing Search API functionality via the UI.

Code

protected function drupalPost($path, $edit, $submit, array $options = array(), array $headers = array(), $form_html_id = NULL, $extra_post = NULL) {
  $ret = parent::drupalPost($path, $edit, $submit, $options, $headers, $form_html_id, $extra_post);
  $this
    ->assertResponse(200, 'HTTP code 200 returned.');
  return $ret;
}