X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrush%2Fdrush%2Ftests%2FPmEnLocaleImportTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FPmEnLocaleImportTest.php;h=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9a0122334ee1d849526c6b28f3b8ebc632efe030;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/drush/drush/tests/PmEnLocaleImportTest.php b/vendor/drush/drush/tests/PmEnLocaleImportTest.php deleted file mode 100644 index 9a0122334..000000000 --- a/vendor/drush/drush/tests/PmEnLocaleImportTest.php +++ /dev/null @@ -1,53 +0,0 @@ -setUpDrupal(1, true); - $uri = key($sites); - $root = $this->webroot(); - $options = array( - 'root' => $root, - 'uri' => $uri, - ); - - $this->drush('pm-enable', ['language', 'locale', 'dblog'], $options); - $this->drush('config-set', ['locale.settings', 'translation.import_enabled', true], $options); - - // Setup the interface translation system and prepare a source translation file. - // The test uses a local po file as translation source. This po file will be - // imported from the translations directory when a module is enabled. - $this->drush('config-set', ['locale.settings', 'translation.use_source', 'locale'], $options); - $this->drush('config-set', ['locale.settings', 'translation.default_filename', '%project.%language.po'], $options); - $this->drush('config-set', ['locale.settings', 'translation.path', '../translations'], $options); - $source = Path::join(__DIR__, '/resources/devel.nl.po'); - $translationDir = Path::join($root, '../translations'); - $this->mkdir($translationDir); - copy($source, $translationDir . '/devel.nl.po'); - - $this->drush('php-eval', ['\Drupal\language\Entity\ConfigurableLanguage::create([ - "id" => "nl", - "label" => "Dutch", - ])->save()']); - - $this->drush('pm-enable', ['devel'], $options); - $this->drush('watchdog-show', [], $options); - $this->assertContains('Translations imported:', $this->getSimplifiedOutput()); - - // Clean up the mess this test creates. - unlink($translationDir . '/devel.nl.po'); - rmdir($translationDir); - } -}