InstallerExistingConfigTest.php in Drupal 10
File
core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
class InstallerExistingConfigTest extends InstallerExistingConfigTestBase {
protected function setUpLanguage() {
mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.fr.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Enregistrer et continuer\"");
parent::setUpLanguage();
}
public function setUpSettings() {
$this->translations['Save and continue'] = 'Enregistrer et continuer';
parent::setUpSettings();
}
protected function getConfigTarball() {
return __DIR__ . '/../../../fixtures/config_install/testing_config_install.tar.gz';
}
}