3 namespace Drupal\system\Tests\Installer;
5 use Drupal\simpletest\InstallerTestBase;
8 * Tests the installer with an existing Drupal installation.
12 class InstallerExistingInstallationTest extends InstallerTestBase {
17 protected function setUp() {
22 * Verifies that Drupal can't be reinstalled while an existing installation is
25 public function testInstaller() {
26 // Verify that Drupal can't be immediately reinstalled.
27 $this->visitInstaller();
28 $this->assertRaw('Drupal already installed');
30 // Delete settings.php and attempt to reinstall again.
31 unlink($this->siteDirectory . '/settings.php');
32 $this->visitInstaller();
33 $this->setUpLanguage();
34 $this->setUpProfile();
35 $this->setUpSettings();
36 $this->assertRaw('Drupal already installed');