Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / Tests / Installer / InstallerConfigDirectorySetNoDirectoryErrorTest.php
diff --git a/web/core/modules/system/src/Tests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php b/web/core/modules/system/src/Tests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php
deleted file mode 100644 (file)
index 2ab980f..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-namespace Drupal\system\Tests\Installer;
-
-use Drupal\Component\Utility\Crypt;
-use Drupal\simpletest\InstallerTestBase;
-
-/**
- * Tests the installer when a config_directory set up but does not exist.
- *
- * @group Installer
- */
-class InstallerConfigDirectorySetNoDirectoryErrorTest extends InstallerTestBase {
-
-  /**
-   * The directory where the sync directory should be created during install.
-   *
-   * @var string
-   */
-  protected $configDirectory;
-
-  /**
-   * {@inheritdoc}
-   */
-  protected function setUp() {
-    $this->configDirectory = $this->publicFilesDirectory . '/config_' . Crypt::randomBytesBase64();
-    $this->settings['config_directories'][CONFIG_SYNC_DIRECTORY] = (object) [
-      'value' => $this->configDirectory . '/sync',
-      'required' => TRUE,
-    ];
-    // Create the files directory early so we can test the error case.
-    mkdir($this->publicFilesDirectory);
-    // Create a file so the directory can not be created.
-    file_put_contents($this->configDirectory, 'Test');
-    parent::setUp();
-  }
-
-  /**
-   * Installer step: Configure settings.
-   */
-  protected function setUpSettings() {
-    // This step should not appear as we had a failure prior to the settings
-    // screen.
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  protected function setUpSite() {
-    // This step should not appear as we had a failure prior to the settings
-    // screen.
-  }
-
-  /**
-   * Verifies that installation failed.
-   */
-  public function testError() {
-    $this->assertText("An automated attempt to create the directory {$this->configDirectory}/sync failed, possibly due to a permissions problem.");
-    $this->assertFalse(file_exists($this->configDirectory . '/sync') && is_dir($this->configDirectory . '/sync'), "The directory {$this->configDirectory}/sync does not exist.");
-  }
-
-}