LocaleExportFunctionalTest::testExportTranslationTemplateFile

7 locale.test LocaleExportFunctionalTest::testExportTranslationTemplateFile()
8 locale.test LocaleExportFunctionalTest::testExportTranslationTemplateFile()

Test exportation of translation template file.

File

modules/locale/locale.test, line 1314
Tests for locale.module.

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->drupalPost('admin/config/regional/translate/export', array(), t('Export'));
  // Ensure we have a translation file.
  $this->assertRaw('# LANGUAGE translation of PROJECT', t('Exported translation template file.'));
}
Login or register to post comments