3 namespace Drupal\Tests\config_translation\Kernel\Migrate\d6;
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
8 * Upgrade i18n maintenance variables to system.*.yml.
10 * @group migrate_drupal_6
13 class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal6TestBase {
15 public static $modules = [
18 // Required for translation migrations.
19 'migrate_drupal_multilingual',
25 protected function setUp() {
27 $this->executeMigration('d6_system_maintenance_translation');
31 * Tests migration of system (maintenance) variables to system.maintenance.yml.
33 public function testSystemMaintenance() {
34 $config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance');
35 $this->assertIdentical('fr - Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config->get('message'));