You are here

protected function ContentLanguageAccessTestCase::configureLanguages in Content Language Access 6

Same name and namespace in other branches
  1. 7 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 46
Test suite for content language access module

Class

ContentLanguageAccessTestCase
@file Test suite for content language access module

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.
  variable_set('language_negotiation', LANGUAGE_NEGOTIATION_PATH);
}