You are here

public function InstallerTest::testInstaller in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Installer/InstallerTest.php \Drupal\system\Tests\Installer\InstallerTest::testInstaller()

Ensures that the user page is available after installation.

File

core/modules/system/src/Tests/Installer/InstallerTest.php, line 22
Contains \Drupal\system\Tests\Installer\InstallerTest.

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\system\Tests\Installer

Code

public function testInstaller() {
  $this
    ->assertUrl('user/1');
  $this
    ->assertResponse(200);

  // Confirm that we are logged-in after installation.
  $this
    ->assertText($this->rootUser
    ->getUsername());

  // Verify that the confirmation message appears.
  require_once \Drupal::root() . '/core/includes/install.inc';
  $this
    ->assertRaw(t('Congratulations, you installed @drupal!', array(
    '@drupal' => drupal_install_profile_distribution_name(),
  )));
}