You are here

function EntityTranslationTestCase::get in Entity Translation 7

Retrieves a Drupal path or an absolute path with language.

Parameters

$language: Language code or language object.

7 calls to EntityTranslationTestCase::get()
EntityTranslationCommentTestCase::testCommentLanguageFiltering in tests/entity_translation.test
Test comment filtering by language.
EntityTranslationMenuTranslationTestCase::createPage in entity_translation_i18n_menu/entity_translation_i18n_menu.test
Create page with menu item.
EntityTranslationMenuTranslationTestCase::createTranslation in entity_translation_i18n_menu/entity_translation_i18n_menu.test
Create a translation with menu item.
EntityTranslationMenuTranslationTestCase::editPage in entity_translation_i18n_menu/entity_translation_i18n_menu.test
Edit a page menu item.
EntityTranslationMenuTranslationTestCase::testMenuLocalization in entity_translation_i18n_menu/entity_translation_i18n_menu.test
Test if menu localization works.

... See full list

File

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

Class

EntityTranslationTestCase
Base class for entity translation module tests.

Code

function get($language, $path = '', array $options = array(), array $headers = array()) {
  $options['language'] = $this
    ->getLanguage($language);
  return $this
    ->drupalGet($path, $options, $headers);
}