function LocaleLanguageNegotiationInfoFunctionalTest::setUp

Overrides DrupalWebTestCase::setUp

File

modules/locale/locale.test, line 3092

Class

LocaleLanguageNegotiationInfoFunctionalTest
Functional test for language types/negotiation info.

Code

function setUp() {
    parent::setUp('locale');
    require_once DRUPAL_ROOT . '/includes/language.inc';
    $admin_user = $this->drupalCreateUser(array(
        'administer languages',
        'access administration pages',
        'view the administration theme',
    ));
    $this->drupalLogin($admin_user);
    $this->drupalPost('admin/config/regional/language/add', array(
        'langcode' => 'it',
    ), t('Add language'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.