function MigrateSystemMaintenanceTranslationTest::testSystemMaintenance

Same name in this branch
  1. 8.9.x core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
Same name 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()
  2. 9 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
  3. 10 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
  4. 10 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
  5. 11.x core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
  6. 11.x core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()

Tests migrations of i18n maintenance variable.

File

core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php, line 30

Class

MigrateSystemMaintenanceTranslationTest
Tests migrations of i18n maintenance variable.

Namespace

Drupal\Tests\config_translation\Kernel\Migrate\d7

Code

public function testSystemMaintenance() {
    $config = \Drupal::service('language_manager')->getLanguageConfigOverride('is', 'system.maintenance');
    $this->assertSame('is - This is a custom maintenance mode message.', $config->get('message'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.