function LanguageHierarchyBaseTestCase::get in Language Hierarchy 7
Retrieves a Drupal path or an absolute path with language.
Parameters
$language: Language code or language object.
5 calls to LanguageHierarchyBaseTestCase::get()
- EntityTranslationHierarchyViewsWebTestCase::testViewsSupport in modules/
entity_translation_hierarchy/ tests/ entity_translation_hierarchy.test - Test support for inheritance in views.
- EntityTranslationHierarchyWebTestCase::testBlockingOfTranslation in modules/
entity_translation_hierarchy/ tests/ entity_translation_hierarchy.test - Test if translation blocking mechanism is working as expected when viewing node.
- EntityTranslationHierarchyWebTestCase::testFieldTranslationInheritance in modules/
entity_translation_hierarchy/ tests/ entity_translation_hierarchy.test - Test if translations are properly displayed when viewing node page.
- LanguageHierarchyI18nVariableTranslationWebTestCase::testVariableUITranslation in modules/
i18n_variable_hierarchy/ i18n_variable_hierarchy.test - Test translating a variable, with hierarchy.
- MenuTranslationHierarchyWebTestCase::testMenuTranslateLocalize in modules/
i18n_menu_hierarchy/ tests/ i18n_menu_hierarchy.test
File
- tests/
language_hierarchy.test, line 191 - Tests for Language Hierarchy module.
Class
- LanguageHierarchyBaseTestCase
- Base class for Language Hierarchy module tests.
Code
function get($language, $path = '', array $options = array(), array $headers = array()) {
$options['language'] = $this
->getLanguage($language);
return $this
->drupalGet($path, $options, $headers);
}