You are here

function LanguageHierarchyBaseTestCase::post in Language Hierarchy 7

Posts to a Drupal path with language.

1 call to LanguageHierarchyBaseTestCase::post()
LanguageHierarchyI18nVariableTranslationWebTestCase::testVariableUITranslation in modules/i18n_variable_hierarchy/i18n_variable_hierarchy.test
Test translating a variable, with hierarchy.

File

tests/language_hierarchy.test, line 199
Tests for Language Hierarchy module.

Class

LanguageHierarchyBaseTestCase
Base class for Language Hierarchy module tests.

Code

function post($language, $path, $edit, $submit, array $options = array(), array $headers = array(), $form_html_id = NULL, $extra_post = NULL) {
  $options['language'] = $this
    ->getLanguage($language);
  $this
    ->drupalPost($path, $edit, $submit, $options, $headers, $form_html_id, $extra_post);
}