function InstallerTest::setUpSettings
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSettings()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSettings()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSettings()
Overrides InstallerTestBase::setUpSettings
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTest.php, line 89
Class
- InstallerTest
- Tests the interactive installer.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function setUpSettings() : void {
// Assert that the expected title is present.
$this->assertEquals('Database configuration', $this->cssSelect('main h2')[0]
->getText());
// Assert that we use the by core supported database drivers by default and
// not the ones from the driver_test module.
$this->assertSession()
->elementTextEquals('xpath', '//label[@for="edit-driver-drupalmysqldriverdatabasemysql"]', 'MySQL, MariaDB, Percona Server, or equivalent');
$this->assertSession()
->elementTextEquals('xpath', '//label[@for="edit-driver-drupalpgsqldriverdatabasepgsql"]', 'PostgreSQL');
parent::setUpSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.