comparison core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
14 /** 14 /**
15 * Installer step: Select language. 15 * Installer step: Select language.
16 */ 16 */
17 protected function setUpLanguage() { 17 protected function setUpLanguage() {
18 // Place a custom local translation in the translations directory. 18 // Place a custom local translation in the translations directory.
19 mkdir(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); 19 mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
20 touch(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po'); 20 touch($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po');
21 21
22 // Check that all predefined languages show up with their native names. 22 // Check that all predefined languages show up with their native names.
23 $this->visitInstaller(); 23 $this->visitInstaller();
24 foreach (LanguageManager::getStandardLanguageList() as $langcode => $names) { 24 foreach (LanguageManager::getStandardLanguageList() as $langcode => $names) {
25 $this->assertOption('edit-langcode', $langcode); 25 $this->assertOption('edit-langcode', $langcode);