function InstallerExistingSettingsTest::visitInstaller

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingSettingsTest::visitInstaller()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingSettingsTest::visitInstaller()
  3. 11.x 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 62

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');
}

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