Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / config_translation / tests / src / Kernel / Migrate / d6 / MigrateSystemMaintenanceTranslationTest.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  * @group legacy
12  */
13 class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal6TestBase {
14
15   public static $modules = ['language', 'config_translation'];
16
17   /**
18    * {@inheritdoc}
19    */
20   protected function setUp() {
21     parent::setUp();
22     $this->executeMigration('d6_system_maintenance_translation');
23   }
24
25   /**
26    * Tests migration of system (maintenance) variables to system.maintenance.yml.
27    */
28   public function testSystemMaintenance() {
29     $config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance');
30     $this->assertIdentical('fr - Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config->get('message'));
31   }
32
33 }