Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Plugin / StubPluginManagerBaseWithMapper.php
diff --git a/web/core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php b/web/core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php
new file mode 100644 (file)
index 0000000..d3f3f94
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\Tests\Component\Plugin;
+
+use Drupal\Component\Plugin\Mapper\MapperInterface;
+use Drupal\Component\Plugin\PluginManagerBase;
+
+/**
+ * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.
+ */
+final class StubPluginManagerBaseWithMapper extends PluginManagerBase {
+
+  /**
+   * Constructs a new instance.
+   *
+   * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
+   */
+  public function __construct(MapperInterface $mapper) {
+    $this->mapper = $mapper;
+  }
+
+}