InstallerLanguagePageTest.php in Zircon Profile 8
File
core/modules/system/src/Tests/Installer/InstallerLanguagePageTest.php
View source
<?php
namespace Drupal\system\Tests\Installer;
use Drupal\Core\Language\LanguageManager;
use Drupal\simpletest\InstallerTestBase;
class InstallerLanguagePageTest extends InstallerTestBase {
protected function setUpLanguage() {
mkdir(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
touch(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po');
$this
->drupalGet($GLOBALS['base_url'] . '/core/install.php');
foreach (LanguageManager::getStandardLanguageList() as $langcode => $names) {
$this
->assertOption('edit-langcode', $langcode);
$this
->assertRaw('>' . $names[1] . '<');
}
$this
->assertOption('edit-langcode', 'xoxo');
$this
->assertRaw('>xoxo<');
parent::setUpLanguage();
}
public function testInstalled() {
$this
->assertUrl('user/1');
$this
->assertResponse(200);
}
}