You are here

function EntityTranslationTestCase::post in Entity Translation 7

Posts to a Drupal path with language.

1 call to EntityTranslationTestCase::post()
EntityTranslationCommentTestCase::postComment in tests/entity_translation.test
Add a comment for the given node.

File

tests/entity_translation.test, line 44
Tests for Entity translation module.

Class

EntityTranslationTestCase
Base class for entity translation 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);
}