protected function I18nBookNavigationTestBase::configureI18nDetection in Book translation 7.2
Configure the locale selection.
2 calls to I18nBookNavigationTestBase::configureI18nDetection()
- I18nBookNavigationEntityTranslationTestCase::testEntityTranslationIntegration in tests/
i18n_book_navigation.test - Test entity_translation and title integration.
- I18nBookNavigationTestBase::setUp in tests/
i18n_book_navigation.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
i18n_book_navigation.test, line 276 - Unit tests for the Book translation module.
Class
- I18nBookNavigationTestBase
- @file Unit tests for the Book translation module.
Code
protected function configureI18nDetection($use_entity_translation = FALSE) {
$edit = array(
"language[enabled][locale-session]" => 0,
"language[enabled][locale-url]" => 1,
);
if ($use_entity_translation) {
$edit["language_content[enabled][locale-session]"] = 1;
$edit["language_content[enabled][locale-url]"] = 1;
}
$this
->drupalPost('admin/config/regional/language/configure', $edit, t("Save settings"));
// Reset caches.
drupal_static_reset('locale_url_outbound_alter');
drupal_static_reset('language_list');
}