function makeMakefileCase::testMakeTranslationsInside

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

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 705

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

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

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

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

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