Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / tests / TestModuleHelperTrait.php
diff --git a/vendor/drush/drush/tests/TestModuleHelperTrait.php b/vendor/drush/drush/tests/TestModuleHelperTrait.php
deleted file mode 100644 (file)
index 82dc3de..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace Unish;
-
-use Symfony\Component\Filesystem\Filesystem;
-use Webmozart\PathUtil\Path;
-
-/**
- * Helper for installing testing modules.
- */
-trait TestModuleHelperTrait
-{
-    /**
-     * Copies the testing modules from a specific path into Drupal.
-     *
-     * @param array $modules A list of testing modules.
-     * @param string $sourcePath The path under which the modules are placed.
-     */
-    public function setupModulesForTests(array $modules, $sourcePath)
-    {
-        $webRoot = $this->webroot();
-        $fileSystem = new Filesystem();
-        foreach ($modules as $module) {
-            $sourceDir = Path::join($sourcePath, $module);
-            $this->assertFileExists($sourceDir);
-            $targetDir = Path::join($webRoot, "modules/unish/$module");
-            $fileSystem->mkdir($targetDir);
-            $this->recursiveCopy($sourceDir, $targetDir);
-        }
-    }
-}