X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalTests%2FInstaller%2FInstallerLanguagePageTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FFunctionalTests%2FInstaller%2FInstallerLanguagePageTest.php;h=5ea9692f341bd415f6c6e80a5a997dc64121d47f;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php b/web/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php new file mode 100644 index 000000000..5ea9692f3 --- /dev/null +++ b/web/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php @@ -0,0 +1,44 @@ +root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); + touch($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po'); + + // Check that all predefined languages show up with their native names. + $this->visitInstaller(); + foreach (LanguageManager::getStandardLanguageList() as $langcode => $names) { + $this->assertOption('edit-langcode', $langcode); + $this->assertRaw('>' . $names[1] . '<'); + } + + // Check that our custom one shows up with the file name indicated language. + $this->assertOption('edit-langcode', 'xoxo'); + $this->assertRaw('>xoxo<'); + + parent::setUpLanguage(); + } + + /** + * Confirms that the installation succeeded. + */ + public function testInstalled() { + $this->assertUrl('user/1'); + $this->assertResponse(200); + } + +}