function InstallerBrokenDatabasePortSettingsTest::testRequirementsProblem

Same name in other branches
  1. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerBrokenDatabasePortSettingsTest::testRequirementsProblem()

Tests the expected requirements problem.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php, line 59

Class

InstallerBrokenDatabasePortSettingsTest
Tests the installer with incorrect 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("[Tip: This message normally means that there is no MySQL server running on the system or that you are using an incorrect host name or port number when trying to connect to the server. You should also check that the TCP/IP port you are using has not been blocked by a firewall or port blocking service.]");
}

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