function MigrateSystemMaintenanceTranslationTest::testSystemMaintenance
Same name in this branch
- 11.x core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
Same name in other branches
- 9 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
- 9 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
- 8.9.x core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
- 8.9.x core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
- 10 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
- 10 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest::testSystemMaintenance()
Tests migration of system variables to system.maintenance.yml.
File
-
core/
modules/ config_translation/ tests/ src/ Kernel/ Migrate/ d6/ MigrateSystemMaintenanceTranslationTest.php, line 39
Class
- MigrateSystemMaintenanceTranslationTest
- Upgrade i18n maintenance variables to system.*.yml.
Namespace
Drupal\Tests\config_translation\Kernel\Migrate\d6Code
public function testSystemMaintenance() : void {
$config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance');
$this->assertSame('fr - Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config->get('message'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.