7b29d4acc834127ed58695d39e9a594bcafabb74
[yaffs-website] / web / core / tests / Drupal / FunctionalTests / Installer / InstallerExistingInstallationTest.php
1 <?php
2
3 namespace Drupal\FunctionalTests\Installer;
4
5 /**
6  * Tests the installer with an existing Drupal installation.
7  *
8  * @group Installer
9  */
10 class InstallerExistingInstallationTest extends InstallerTestBase {
11
12   /**
13    * Verifies that Drupal can't be reinstalled while an existing installation is
14    * available.
15    */
16   public function testInstaller() {
17     // Verify that Drupal can't be immediately reinstalled.
18     $this->visitInstaller();
19     $this->assertRaw('Drupal already installed');
20
21     // Delete settings.php and attempt to reinstall again.
22     unlink($this->siteDirectory . '/settings.php');
23     $this->visitInstaller();
24     $this->setUpLanguage();
25     $this->setUpProfile();
26     $this->setUpRequirementsProblem();
27     $this->setUpSettings();
28     $this->assertRaw('Drupal already installed');
29   }
30
31 }