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 / d7 / MigrateSystemMaintenanceTranslationTest.php
1 <?php
2
3 namespace Drupal\Tests\config_translation\Kernel\Migrate\d7;
4
5 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
6
7 /**
8  * Tests migrations of i18n maintenance variable.
9  *
10  * @group migrate_drupal_7
11  */
12 class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal7TestBase {
13
14   public static $modules = [
15     'language',
16     'config_translation',
17     // Required for translation migrations.
18     'migrate_drupal_multilingual',
19   ];
20
21   /**
22    * {@inheritdoc}
23    */
24   protected function setUp() {
25     parent::setUp();
26     $this->executeMigration('d7_system_maintenance_translation');
27   }
28
29   /**
30    * Tests migrations of i18n maintenance variable.
31    */
32   public function testSystemMaintenance() {
33     $config = \Drupal::service('language_manager')->getLanguageConfigOverride('is', 'system.maintenance');
34     $this->assertSame('is - This is a custom maintenance mode message.', $config->get('message'));
35   }
36
37 }