Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / Tests / Installer / InstallerExistingSettingsNoProfileTest.php
diff --git a/web/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php b/web/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php
deleted file mode 100644 (file)
index 3405cb5..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-namespace Drupal\system\Tests\Installer;
-
-use Drupal\Core\DrupalKernel;
-use Drupal\simpletest\InstallerTestBase;
-use Drupal\Core\Database\Database;
-use Symfony\Component\HttpFoundation\Request;
-
-/**
- * Tests the installer with an existing settings file but no install profile.
- *
- * @group Installer
- */
-class InstallerExistingSettingsNoProfileTest extends InstallerTestBase {
-
-  /**
-   * {@inheritdoc}
-   *
-   * Configures a preexisting settings.php file without an install_profile
-   * setting before invoking the interactive installer.
-   */
-  protected function setUp() {
-    // Pre-configure hash salt.
-    // Any string is valid, so simply use the class name of this test.
-    $this->settings['settings']['hash_salt'] = (object) [
-      'value' => __CLASS__,
-      'required' => TRUE,
-    ];
-
-    // Pre-configure database credentials.
-    $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,
-    ];
-
-    // Pre-configure config directories.
-    $this->settings['config_directories'] = [
-      CONFIG_SYNC_DIRECTORY => (object) [
-        'value' => DrupalKernel::findSitePath(Request::createFromGlobals()) . '/files/config_sync',
-        'required' => TRUE,
-      ],
-    ];
-    mkdir($this->settings['config_directories'][CONFIG_SYNC_DIRECTORY]->value, 0777, TRUE);
-
-    parent::setUp();
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  protected function setUpSettings() {
-    // This step should not appear, since settings.php is fully configured
-    // already.
-  }
-
-  /**
-   * Verifies that installation succeeded.
-   */
-  public function testInstaller() {
-    $this->assertUrl('user/1');
-    $this->assertResponse(200);
-    $this->assertEqual('testing', \Drupal::installProfile());
-  }
-
-}