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