These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
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) { |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
11 | $environment = $scope->getEnvironment(); |
||
12 | |||
13 | $this->drupalContext = $environment->getContext('Drupal\DrupalExtension\Context\DrupalContext'); |
||
14 | $this->minkContext = $environment->getContext('Drupal\DrupalExtension\Context\MinkContext'); |
||
15 | } |
||
16 |