function StandardInstallerTest::testInstaller

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testInstaller()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testInstaller()
  3. 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 22

Class

StandardInstallerTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstaller() : void {
    // Verify that Olivero's default frontpage appears.
    $this->assertSession()
        ->pageTextContains('Congratulations and welcome to the Drupal community.');
    $this->assertSession()
        ->elementTextContains('css', '#block-olivero-powered', 'Powered by Drupal');
}

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