You are here

protected function Drupali18nTestCase::i18nGet in Internationalization 7

Same name and namespace in other branches
  1. 6 tests/drupal_i18n_test_case.php \Drupali18nTestCase::i18nGet()

Retrieves a Drupal path or an absolute path with language

Parameters

$language: Language code or language object

6 calls to Drupali18nTestCase::i18nGet()
Drupali18nTestCase::i18nAssertTranslations in ./i18n.test
Check strings for different languages
i18nBlocksTestCase::testBlockTranslation in i18n_block/i18n_block.test
i18nForumTestCase::testI18nSelectTest in i18n_forum/i18n_forum.test
Tests i18n_select integration.
i18nMenuTestCase::testMenuTranslateLocalize in i18n_menu/i18n_menu.test
i18nMenuTestCase::testNodeMenuItems in i18n_menu/i18n_menu.test
Test menu items for nodes.

... See full list

File

./i18n.test, line 219
Base class for Internationalization tests

Class

Drupali18nTestCase
@file Base class for Internationalization tests

Code

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