Updated Drupal to 8.6. This goes with the following updates because it's possible...
[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 = [
16     'language',
17     'config_translation',
18     // Required for translation migrations.
19     'migrate_drupal_multilingual',
20   ];
21
22   /**
23    * {@inheritdoc}
24    */
25   protected function setUp() {
26     parent::setUp();
27     $this->executeMigration('d6_system_maintenance_translation');
28   }
29
30   /**
31    * Tests migration of system (maintenance) variables to system.maintenance.yml.
32    */
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'));
36   }
37
38 }