Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / src / Tests / Installer / InstallerTranslationMultipleLanguageTest.php
index a608cada77f342b30a1096ef0b10d2a029395d90..dcde753d767d61acd15b10b6c168f6d3055a8bc1 100644 (file)
@@ -51,13 +51,29 @@ msgstr "Anonymous $langcode"
 
 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');