You are here

public function InstallerDatabaseErrorMessagesTest::testSetUpSettingsErrorMessage in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php \Drupal\FunctionalTests\Installer\InstallerDatabaseErrorMessagesTest::testSetUpSettingsErrorMessage()
  2. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php \Drupal\FunctionalTests\Installer\InstallerDatabaseErrorMessagesTest::testSetUpSettingsErrorMessage()

Verifies that the error message in the settings step is correct.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php, line 51

Class

InstallerDatabaseErrorMessagesTest
Tests the installer with database errors.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testSetUpSettingsErrorMessage() {
  $this
    ->assertSession()
    ->responseContains('<ul><li>Failed to <strong>CREATE</strong> a test table');
}