Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / Tests / Installer / InstallerExistingDatabaseSettingsTest.php
diff --git a/web/core/modules/system/src/Tests/Installer/InstallerExistingDatabaseSettingsTest.php b/web/core/modules/system/src/Tests/Installer/InstallerExistingDatabaseSettingsTest.php
deleted file mode 100644 (file)
index 63d3ce4..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-namespace Drupal\system\Tests\Installer;
-
-use Drupal\simpletest\InstallerTestBase;
-use Drupal\Core\Database\Database;
-
-/**
- * Tests the installer with an existing settings file with database connection
- * info.
- *
- * @group Installer
- */
-class InstallerExistingDatabaseSettingsTest extends InstallerTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  protected function setUp() {
-    // Pre-configure database credentials in settings.php.
-    $connection_info = Database::getConnectionInfo();
-    unset($connection_info['default']['pdo']);
-    unset($connection_info['default']['init_commands']);
-
-    $this->settings['databases']['default'] = (object) [
-      'value' => $connection_info,
-      'required' => TRUE,
-    ];
-    parent::setUp();
-  }
-
-  /**
-   * {@inheritdoc}
-   *
-   * @todo The database settings form is not supposed to appear if settings.php
-   *   contains a valid database connection already (but e.g. no config
-   *   directories yet).
-   */
-  protected function setUpSettings() {
-    // All database settings should be pre-configured, except password.
-    $values = $this->parameters['forms']['install_settings_form'];
-    $driver = $values['driver'];
-    $edit = [];
-    if (isset($values[$driver]['password']) && $values[$driver]['password'] !== '') {
-      $edit = $this->translatePostValues([
-        $driver => [
-          'password' => $values[$driver]['password'],
-        ],
-      ]);
-    }
-    $this->drupalPostForm(NULL, $edit, $this->translations['Save and continue']);
-  }
-
-  /**
-   * Verifies that installation succeeded.
-   */
-  public function testInstaller() {
-    $this->assertUrl('user/1');
-    $this->assertResponse(200);
-  }
-
-}