function makeMakefileCase::testMakeTranslations

8.0.x makeTest.php makeMakefileCase::testMakeTranslations()
6.x makeTest.php makeMakefileCase::testMakeTranslations()
7.x makeTest.php makeMakefileCase::testMakeTranslations()
5.x makeTest.php makeMakefileCase::testMakeTranslations()
master makeTest.php makeMakefileCase::testMakeTranslations()

Translations can change arbitrarily, so these test for the existence of .po files, rather than trying to match a build hash.

File

tests/makeTest.php, line 170

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testMakeTranslations() {
  $config = $this->getMakefile('translations');

  $makefile = $this->makefile_path . DIRECTORY_SEPARATOR . $config['makefile'];
  $install_directory = UNISH_SANDBOX . '/translations';
  $this->drush('make', array($makefile, $install_directory), $config['options']);

  $po_files = array(
    'sites/all/modules/token/translations/pt-br.po',
    'sites/all/modules/token/translations/es.po',
  );

  foreach ($po_files as $po_file) {
    $this->assertFileExists($install_directory . '/' . $po_file);
  }
}