class MigrateSystemMaintenanceTranslationTest

Same name in this branch
  1. 8.9.x core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest
Same name and namespace in other branches
  1. 11.x core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest
  2. 11.x core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest
  3. 10 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest
  4. 10 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest
  5. 9 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d6\MigrateSystemMaintenanceTranslationTest
  6. 9 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemMaintenanceTranslationTest.php \Drupal\Tests\config_translation\Kernel\Migrate\d7\MigrateSystemMaintenanceTranslationTest

Upgrade i18n maintenance variables to system.*.yml.

@group migrate_drupal_6 @group legacy

Hierarchy

Expanded class hierarchy of MigrateSystemMaintenanceTranslationTest

File

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

Namespace

Drupal\Tests\config_translation\Kernel\Migrate\d6
View source
class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal6TestBase {
  public static $modules = [
    'language',
    'config_translation',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->executeMigration('d6_system_maintenance_translation');
  }
  
  /**
   * Tests migration of system (maintenance) variables to system.maintenance.yml.
   */
  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'));
  }

}

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