Version 1
[yaffs-website] / vendor / drupal / console / Test / DataProvider / ProfileDataProviderTrait.php
diff --git a/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php
new file mode 100644 (file)
index 0000000..7dcce3c
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\Console\Test\DataProvider;
+
+/**
+ * Class ProfileDataProviderTrait
+ * @package Drupal\Console\Test\DataProvider
+ */
+trait ProfileDataProviderTrait
+{
+    /**
+     * @return array
+     */
+    public function commandData()
+    {
+        $this->setUpTemporaryDirectory();
+
+        return [
+          // Profile name, machine name, description, core version,
+          // dependencies, distribution name.
+          ['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, false],
+          ['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, 'Bar'],
+        ];
+    }
+}