executeMigration('d6_system_site_translation'); } /** * Tests migration of system (site) variables to system.site.yml. */ public function testSystemSite() { $config_translation = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.site'); $this->assertIdentical('fr site name', $config_translation->get('name')); $this->assertIdentical('fr_site_mail@example.com', $config_translation->get('mail')); $this->assertIdentical('fr Migrate rocks', $config_translation->get('slogan')); $this->assertIdentical('/fr-user', $config_translation->get('page.403')); $this->assertIdentical('/fr-page-not-found', $config_translation->get('page.404')); $this->assertIdentical('/node', $config_translation->get('page.front')); $this->assertIdentical(NULL, $config_translation->get('admin_compact_mode')); $config_translation = \Drupal::service('language_manager')->getLanguageConfigOverride('zu', 'system.site'); $this->assertIdentical('zu - site_name', $config_translation->get('name')); $this->assertIdentical('site_mail@example.com', $config_translation->get('mail')); $this->assertIdentical('Migrate rocks', $config_translation->get('slogan')); $this->assertIdentical('/zu-user', $config_translation->get('page.403')); $this->assertIdentical('/zu-page-not-found', $config_translation->get('page.404')); $this->assertIdentical('/node', $config_translation->get('page.front')); $this->assertIdentical(NULL, $config_translation->get('admin_compact_mode')); } }