You are here

public function MigrateSystemMaintenanceTranslationTest::testSystemMaintenance in Drupal 8

Same name in this branch
  1. 8 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
  2. 8 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
Same name and namespace in other branches
  1. 9 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()

Tests migration of system (maintenance) variables to system.maintenance.yml.

File

core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php, line 31

Class

MigrateSystemMaintenanceTranslationTest
Upgrade i18n maintenance variables to system.*.yml.

Namespace

Drupal\Tests\config_translation\Kernel\Migrate\d6

Code

public function testSystemMaintenance() {
  $config = \Drupal::service('language_manager')
    ->getLanguageConfigOverride('fr', 'system.maintenance');
  $this
    ->assertIdentical('fr - Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config
    ->get('message'));
}