function InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem()
  3. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem()

Tests the expected requirements problem.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php, line 76

Class

InstallerExistingBrokenDatabaseSettingsTest
Tests the installer with broken database connection info in settings.php.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testRequirementsProblem() : void {
    $this->assertSession()
        ->titleEquals('Requirements problem | Drupal');
    $this->assertSession()
        ->pageTextContains('Database settings');
    $this->assertSession()
        ->pageTextContains('Resolve all issues below to continue the installation. For help configuring your database server,');
    $this->assertSession()
        ->pageTextContains('The database server version 10.2.31-MariaDB-1:10.2.31+maria~bionic-log is less than the minimum required version');
}

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