diff core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php	Fri Feb 23 15:51:18 2018 +0000
+++ b/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php	Fri Feb 23 15:52:07 2018 +0000
@@ -51,13 +51,29 @@
 
 msgid "Language"
 msgstr "Language $langcode"
+
+#: Testing site name configuration during the installer.
+msgid "Drupal"
+msgstr "Drupal"
 ENDPO;
   }
 
   /**
+   * {@inheritdoc}
+   */
+  protected function installParameters() {
+    $params = parent::installParameters();
+    $params['forms']['install_configure_form']['site_name'] = 'SITE_NAME_' . $this->langcode;
+    return $params;
+  }
+
+  /**
    * Tests that translations ended up at the expected places.
    */
   public function testTranslationsLoaded() {
+    // Ensure the title is correct.
+    $this->assertEqual('SITE_NAME_' . $this->langcode, \Drupal::config('system.site')->get('name'));
+
     // Verify German and Spanish were configured.
     $this->drupalGet('admin/config/regional/language');
     $this->assertText('German');