Version 1
[yaffs-website] / web / core / modules / config_translation / tests / src / Kernel / Migrate / d6 / MigrateI18nSystemMaintenanceTest.php
1 <?php
2
3 namespace Drupal\Tests\config_translation\Kernel\Migrate\d6;
4
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
6
7 /**
8  * Upgrade i18n maintenance variables to system.*.yml.
9  *
10  * @group migrate_drupal_6
11  */
12 class MigrateI18nSystemMaintenanceTest extends MigrateDrupal6TestBase {
13
14   public static $modules = ['language', 'config_translation'];
15
16   /**
17    * {@inheritdoc}
18    */
19   protected function setUp() {
20     parent::setUp();
21     $this->executeMigration('d6_i18n_system_maintenance');
22   }
23
24   /**
25    * Tests migration of system (maintenance) variables to system.maintenance.yml.
26    */
27   public function testSystemMaintenance() {
28     $config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance');
29     $this->assertIdentical('fr - Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config->get('message'));
30   }
31
32 }