Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
49 msgid "Anonymous" | 49 msgid "Anonymous" |
50 msgstr "Anonymous $langcode" | 50 msgstr "Anonymous $langcode" |
51 | 51 |
52 msgid "Language" | 52 msgid "Language" |
53 msgstr "Language $langcode" | 53 msgstr "Language $langcode" |
54 | |
55 #: Testing site name configuration during the installer. | |
56 msgid "Drupal" | |
57 msgstr "Drupal" | |
54 ENDPO; | 58 ENDPO; |
59 } | |
60 | |
61 /** | |
62 * {@inheritdoc} | |
63 */ | |
64 protected function installParameters() { | |
65 $params = parent::installParameters(); | |
66 $params['forms']['install_configure_form']['site_name'] = 'SITE_NAME_' . $this->langcode; | |
67 return $params; | |
55 } | 68 } |
56 | 69 |
57 /** | 70 /** |
58 * Tests that translations ended up at the expected places. | 71 * Tests that translations ended up at the expected places. |
59 */ | 72 */ |
60 public function testTranslationsLoaded() { | 73 public function testTranslationsLoaded() { |
74 // Ensure the title is correct. | |
75 $this->assertEqual('SITE_NAME_' . $this->langcode, \Drupal::config('system.site')->get('name')); | |
76 | |
61 // Verify German and Spanish were configured. | 77 // Verify German and Spanish were configured. |
62 $this->drupalGet('admin/config/regional/language'); | 78 $this->drupalGet('admin/config/regional/language'); |
63 $this->assertText('German'); | 79 $this->assertText('German'); |
64 $this->assertText('Spanish'); | 80 $this->assertText('Spanish'); |
65 // If the installer was English or we used a profile that keeps English, we | 81 // If the installer was English or we used a profile that keeps English, we |