protected function InstallerExistingSettingsTest::visitInstaller in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingSettingsTest::visitInstaller()
- 10 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\InstallerCode
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');
}