1 locale.test LocaleExportFunctionalTest::testExportTranslationTemplateFile()

Test exportation of translation template file.

File

core/modules/locale/tests/locale.test, line 1169
Tests for locale.module.

Class

LocaleExportFunctionalTest
Functional tests for the export of translation files.

Code

function testExportTranslationTemplateFile() {
  // Get the translation template file.
  // There are two 'Export' buttons on this page, but it somehow works.  It'd
  // be better if we could use the submit button id like documented but that
  // doesn't work.
  $this->backdropPost('admin/config/regional/translate/export', array(), t('Export'));
  // Ensure we have a translation file.
  $this->assertRaw('# LANGUAGE translation of PROJECT', 'Exported translation template file.');
}