You are here

public function SingleVisibleProfileTest::testInstalled in Zircon Profile 8

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

Confirms that the installation succeeded.

File

core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php, line 61
Contains \Drupal\system\Tests\Installer\SingleVisibleProfileTest.

Class

SingleVisibleProfileTest
Tests distribution profile support.

Namespace

Drupal\system\Tests\Installer

Code

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

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

  // Confirm that the minimal profile was installed.
  $this
    ->assertEqual(drupal_get_profile(), 'minimal');
}