Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / doc / _static / snippets / context-communication.inc
1 <?php
2
3 // Snippet to demonstrate context communications.
4
5   /**
6    * Gather any contexts needed.
7    *
8    * @BeforeScenario
9    */
10   public function gatherContexts(BeforeScenarioScope $scope) {
11     $environment = $scope->getEnvironment();
12
13     $this->drupalContext = $environment->getContext('Drupal\DrupalExtension\Context\DrupalContext');
14     $this->minkContext = $environment->getContext('Drupal\DrupalExtension\Context\MinkContext');
15   }