function LocaleSourceUiTest::setUp in Translation Management Tool 8
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTTestBase::setUp
File
- sources/
locale/ tests/ src/ Functional/ LocaleSourceUiTest.php, line 27
Class
- LocaleSourceUiTest
- Locale Source UI tests.
Namespace
Drupal\Tests\tmgmt_locale\FunctionalCode
function setUp() : void {
parent::setUp();
$this->langcode = 'de';
$this->context = 'default';
$file = new \stdClass();
$file->uri = \Drupal::service('file_system')
->realpath(drupal_get_path('module', 'tmgmt_locale') . '/tests/test.xx.po');
$file->langcode = $this->langcode;
Gettext::fileToDatabase($file, array());
$this
->addLanguage($this->langcode);
$this
->addLanguage('gsw-berne');
}