You are here

function TMGMTLocaleSourceUiTestCase::setUp in Translation Management Tool 7

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTBaseTestCase::setUp

File

sources/locale/tmgmt_locale.ui.test, line 16

Class

TMGMTLocaleSourceUiTestCase
Basic Locale Source tests.

Code

function setUp() {
  parent::setUp(array(
    'tmgmt_locale',
    'tmgmt_ui',
  ));
  $this->langcode = 'de';
  $this->context = 'default';
  $file = new stdClass();
  $file->uri = drupal_realpath(drupal_get_path('module', 'tmgmt_locale') . '/tests/test.xx.po');
  $this->pofile = file_save($file);
  $this
    ->setEnvironment($this->langcode);
  $this
    ->setEnvironment('gsw-berne');
}