protected function ContentLanguageAccessTestCase::configureLanguages in Content Language Access 7
Same name and namespace in other branches
- 6 content_language_access.test \ContentLanguageAccessTestCase::configureLanguages()
Creates the languages for the test execution.
1 call to ContentLanguageAccessTestCase::configureLanguages()
- ContentLanguageAccessTestCase::setUp in ./
content_language_access.test - Implements setUp().
File
- ./
content_language_access.test, line 49 - Test suite for content language access module.
Class
- ContentLanguageAccessTestCase
- Defines the content language access test class.
Code
protected function configureLanguages() {
$this
->drupalLogin($this->admin_user);
$this
->addLanguage('fr');
$this
->addLanguage('pt-br');
// Set path languages so we can retrieve pages in different languages.
$negotiation = array(
LOCALE_LANGUAGE_NEGOTIATION_URL => 1,
);
language_negotiation_set(LANGUAGE_TYPE_INTERFACE, $negotiation);
}