function makeMakefileCase::testMakeTranslationsInside7

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

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 145

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

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

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

  $po_files = array(
    'profiles/minimal/translations/pt-br.po',
    'profiles/minimal/translations/es.po',
    'profiles/testing/translations/pt-br.po',
    'profiles/testing/translations/es.po',
    'profiles/standard/translations/pt-br.po',
    'profiles/standard/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);
  }
}