You are here

public function ConfigInstallerTestBase::testInstaller in Configuration installer 8

Ensures that the user page is available after installation.

2 calls to ConfigInstallerTestBase::testInstaller()
ConfigInstallerNestedDependenciesProfileTest::testInstaller in tests/src/Functional/ConfigInstallerNestedDependenciesProfileTest.php
Ensures that the user page is available after installation.
ConfigInstallerSyncTest::testInstaller in tests/src/Functional/ConfigInstallerSyncTest.php
Ensures that the user page is available after installation.
6 methods override ConfigInstallerTestBase::testInstaller()
ConfigInstallerEnSecondTest::testInstaller in tests/src/Functional/ConfigInstallerEnSecondTest.php
Ensures that the user page is available after installation.
ConfigInstallerFrDirectorySyncTest::testInstaller in tests/src/Functional/ConfigInstallerFrDirectorySyncTest.php
Ensures that the user page is available after installation.
ConfigInstallerFrTarballTest::testInstaller in tests/src/Functional/ConfigInstallerFrTarballTest.php
Ensures that the user page is available after installation.
ConfigInstallerNestedDependenciesProfileTest::testInstaller in tests/src/Functional/ConfigInstallerNestedDependenciesProfileTest.php
Ensures that the user page is available after installation.
ConfigInstallerSyncTest::testInstaller in tests/src/Functional/ConfigInstallerSyncTest.php
Ensures that the user page is available after installation.

... See full list

File

tests/src/Functional/ConfigInstallerTestBase.php, line 62

Class

ConfigInstallerTestBase
Provides functionality for testing the config_installer profile.

Namespace

Drupal\Tests\config_installer\Functional

Code

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

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

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