Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / doc / _static / snippets / context-communication.inc
diff --git a/vendor/drupal/drupal-extension/doc/_static/snippets/context-communication.inc b/vendor/drupal/drupal-extension/doc/_static/snippets/context-communication.inc
new file mode 100644 (file)
index 0000000..fbbb7ae
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+// Snippet to demonstrate context communications.
+
+  /**
+   * Gather any contexts needed.
+   *
+   * @BeforeScenario
+   */
+  public function gatherContexts(BeforeScenarioScope $scope) {
+    $environment = $scope->getEnvironment();
+
+    $this->drupalContext = $environment->getContext('Drupal\DrupalExtension\Context\DrupalContext');
+    $this->minkContext = $environment->getContext('Drupal\DrupalExtension\Context\MinkContext');
+  }