You are here

public function InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingBrokenDatabaseSettingsTest::testRequirementsProblem()
  2. 9 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 72

Class

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

Namespace

Drupal\FunctionalTests\Installer

Code

public function testRequirementsProblem() {
  $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');
}