InstallerTest.php in Zircon Profile 8.0
File
core/modules/system/src/Tests/Installer/InstallerTest.php
View source
<?php
namespace Drupal\system\Tests\Installer;
use Drupal\simpletest\InstallerTestBase;
class InstallerTest extends InstallerTestBase {
public function testInstaller() {
$this
->assertUrl('user/1');
$this
->assertResponse(200);
$this
->assertText($this->rootUser
->getUsername());
require_once \Drupal::root() . '/core/includes/install.inc';
$this
->assertRaw(t('Congratulations, you installed @drupal!', array(
'@drupal' => drupal_install_profile_distribution_name(),
)));
}
protected function setUpLanguage() {
$this
->assertRaw('core/themes/seven/css/components/buttons.css');
$this
->assertRaw('<meta charset="utf-8" />');
$this
->assertEqual('Choose language', $this
->cssSelect('main h1')[0]);
parent::setUpLanguage();
}
protected function setUpProfile() {
$this
->assertEqual('Select an installation profile', $this
->cssSelect('main h1')[0]);
parent::setUpProfile();
}
protected function setUpSettings() {
$this
->assertEqual('Database configuration', $this
->cssSelect('main h1')[0]);
parent::setUpSettings();
}
protected function setUpSite() {
$this
->assertEqual('Configure site', $this
->cssSelect('main h1')[0]);
parent::setUpSite();
}
}