You are here

protected function InstallerTest::setUpSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSettings()

Installer step: Configure settings.

Overrides InstallerTestBase::setUpSettings

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php, line 74

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSettings() {

  // Assert that the expected title is present.
  $this
    ->assertEqual('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.
  $elements = $this
    ->xpath('//label[@for="edit-driver-mysql"]');
  $this
    ->assertEqual(current($elements)
    ->getText(), 'MySQL, MariaDB, Percona Server, or equivalent');
  $elements = $this
    ->xpath('//label[@for="edit-driver-pgsql"]');
  $this
    ->assertEqual(current($elements)
    ->getText(), 'PostgreSQL');
  parent::setUpSettings();
}