Version 1
[yaffs-website] / web / core / modules / system / src / Tests / Installer / InstallerEmptySettingsTest.php
diff --git a/web/core/modules/system/src/Tests/Installer/InstallerEmptySettingsTest.php b/web/core/modules/system/src/Tests/Installer/InstallerEmptySettingsTest.php
new file mode 100644 (file)
index 0000000..85fb889
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+namespace Drupal\system\Tests\Installer;
+
+use Drupal\simpletest\InstallerTestBase;
+
+/**
+ * Tests the installer with empty settings file.
+ *
+ * @group Installer
+ */
+class InstallerEmptySettingsTest extends InstallerTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    // Create an empty settings.php file.
+    touch($this->siteDirectory . '/settings.php');
+    parent::setUp();
+  }
+
+  /**
+   * Verifies that installation succeeded.
+   */
+  public function testInstaller() {
+    $this->assertUrl('user/1');
+    $this->assertResponse(200);
+  }
+
+}