function TMGMTLocaleSourceTestCase::setUp in Translation Management Tool 7
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTBaseTestCase::setUp
File
- sources/
locale/ tmgmt_locale.test, line 16
Class
- TMGMTLocaleSourceTestCase
- Basic Locale Source tests.
Code
function setUp() {
parent::setUp(array(
'tmgmt_locale',
));
$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('es');
}