You are here

public function StandardInstallerTest::testInstaller in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testInstaller()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testInstaller()

Ensures that the user page is available after installation.

File

core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php, line 20

Class

StandardInstallerTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstaller() {

  // Verify that the Standard install profile's default frontpage appears.
  $this
    ->assertSession()
    ->pageTextContains('No front page content has been created yet.');

  // Ensure that the contact link enabled in standard_install() works as
  // expected.
  $this
    ->clickLink('Contact');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->addressEquals('contact');
}