function SingleVisibleProfileTest::testInstalled

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php \Drupal\FunctionalTests\Installer\SingleVisibleProfileTest::testInstalled()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php \Drupal\FunctionalTests\Installer\SingleVisibleProfileTest::testInstalled()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php \Drupal\FunctionalTests\Installer\SingleVisibleProfileTest::testInstalled()

Confirms that the installation succeeded.

File

core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php, line 58

Class

SingleVisibleProfileTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstalled() {
    $this->assertUrl('user/1');
    $this->assertSession()
        ->statusCodeEquals(200);
    // Confirm that we are logged-in after installation.
    $this->assertText($this->rootUser
        ->getAccountName());
    // Confirm that the minimal profile was installed.
    $this->assertEqual(\Drupal::installProfile(), 'minimal');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.