comparison core/modules/system/src/Tests/Installer/DistributionProfileTranslationQueryTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
62 // Pass a different language code than the one set in the distribution 62 // Pass a different language code than the one set in the distribution
63 // profile. This distribution language should still be used. 63 // profile. This distribution language should still be used.
64 // The unrouted URL assembler does not exist at this point, so we build the 64 // The unrouted URL assembler does not exist at this point, so we build the
65 // URL ourselves. 65 // URL ourselves.
66 $this->drupalGet($GLOBALS['base_url'] . '/core/install.php' . '?langcode=fr'); 66 $this->drupalGet($GLOBALS['base_url'] . '/core/install.php' . '?langcode=fr');
67 }
68
69 /**
70 * {@inheritdoc}
71 */
72 protected function setUpLanguage() {
73 // This step is skipped, because the distribution profile uses a fixed
74 // language.
75 }
76
77 /**
78 * {@inheritdoc}
79 */
80 protected function setUpProfile() {
81 // This step is skipped, because there is a distribution profile.
82 }
83
84 /**
85 * {@inheritdoc}
86 */
87 protected function setUpSettings() {
67 // The language should have been automatically detected, all following 88 // The language should have been automatically detected, all following
68 // screens should be translated already. 89 // screens should be translated already.
69 $elements = $this->xpath('//input[@type="submit"]/@value'); 90 $elements = $this->xpath('//input[@type="submit"]/@value');
70 $this->assertEqual((string) current($elements), 'Save and continue de'); 91 $this->assertEqual((string) current($elements), 'Save and continue de');
71 $this->translations['Save and continue'] = 'Save and continue de'; 92 $this->translations['Save and continue'] = 'Save and continue de';
78 $this->assertRaw($this->info['distribution']['name']); 99 $this->assertRaw($this->info['distribution']['name']);
79 // Verify that the requested theme is used. 100 // Verify that the requested theme is used.
80 $this->assertRaw($this->info['distribution']['install']['theme']); 101 $this->assertRaw($this->info['distribution']['install']['theme']);
81 // Verify that the "Choose profile" step does not appear. 102 // Verify that the "Choose profile" step does not appear.
82 $this->assertNoText('profile'); 103 $this->assertNoText('profile');
83 }
84 104
85 /** 105 parent::setUpSettings();
86 * {@inheritdoc}
87 */
88 protected function setUpLanguage() {
89 // This step is skipped, because the distribution profile uses a fixed
90 // language.
91 }
92
93 /**
94 * {@inheritdoc}
95 */
96 protected function setUpProfile() {
97 // This step is skipped, because there is a distribution profile.
98 } 106 }
99 107
100 /** 108 /**
101 * Confirms that the installation succeeded. 109 * Confirms that the installation succeeded.
102 */ 110 */