You are here

protected function InstallerExistingSettingsTest::visitInstaller in Drupal 10

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

Visits the interactive installer.

Overrides InstallerTestBase::visitInstaller

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php, line 60

Class

InstallerExistingSettingsTest
Tests the installer with an existing settings file.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function visitInstaller() {

  // Should redirect to the installer.
  $this
    ->drupalGet($GLOBALS['base_url']);

  // Ensure no database tables have been created yet.
  $this
    ->assertSame([], Database::getConnection()
    ->schema()
    ->findTables('%'));
  $this
    ->assertSession()
    ->addressEquals($GLOBALS['base_url'] . '/core/install.php');
}