839009ecfbe4ad14767ad1090748f6e56da0bae4
[yaffs-website] / web / core / tests / Drupal / FunctionalTests / Installer / InstallerEmptySettingsTest.php
1 <?php
2
3 namespace Drupal\FunctionalTests\Installer;
4
5 /**
6  * Tests the installer with empty settings file.
7  *
8  * @group Installer
9  */
10 class InstallerEmptySettingsTest extends InstallerTestBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   protected function prepareEnvironment() {
16     parent::prepareEnvironment();
17     // Create an empty settings.php file.
18     $path = $this->root . DIRECTORY_SEPARATOR . $this->siteDirectory;
19     file_put_contents($path . '/settings.php', '');
20   }
21
22   /**
23    * Verifies that installation succeeded.
24    */
25   public function testInstaller() {
26     $this->assertUrl('user/1');
27     $this->assertResponse(200);
28   }
29
30 }