Chris@16: root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); Chris@17: touch($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po'); Chris@16: Chris@16: // Check that all predefined languages show up with their native names. Chris@16: $this->visitInstaller(); Chris@16: foreach (LanguageManager::getStandardLanguageList() as $langcode => $names) { Chris@16: $this->assertOption('edit-langcode', $langcode); Chris@16: $this->assertRaw('>' . $names[1] . '<'); Chris@16: } Chris@16: Chris@16: // Check that our custom one shows up with the file name indicated language. Chris@16: $this->assertOption('edit-langcode', 'xoxo'); Chris@16: $this->assertRaw('>xoxo<'); Chris@16: Chris@16: parent::setUpLanguage(); Chris@16: } Chris@16: Chris@16: /** Chris@16: * Confirms that the installation succeeded. Chris@16: */ Chris@16: public function testInstalled() { Chris@16: $this->assertUrl('user/1'); Chris@16: $this->assertResponse(200); Chris@16: } Chris@16: Chris@16: }