Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / config / tests / src / TestLoader.php
diff --git a/vendor/consolidation/config/tests/src/TestLoader.php b/vendor/consolidation/config/tests/src/TestLoader.php
new file mode 100644 (file)
index 0000000..241e512
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+namespace Consolidation\TestUtils;
+
+use Consolidation\Config\Loader\ConfigLoaderInterface;
+
+class TestLoader implements ConfigLoaderInterface
+{
+    protected $data;
+    protected $sourceName;
+
+    public function set($data)
+    {
+        $this->data = $data;
+    }
+
+    public function setSourceName($name)
+    {
+        $this->sourceName = $name;
+    }
+
+    public function export()
+    {
+        return $this->data;
+    }
+
+    public function keys()
+    {
+        return array_keys($this->data);
+    }
+
+    public function getSourceName()
+    {
+        return $this->sourceName;
+    }
+}