@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Drupal\DrupalExtension\Context\Annotation; |
4 | 4 | |
5 | 5 | use Behat\Behat\Context\Annotation\AnnotationReader; |
6 | -use Drupal\DrupalExtension\Hook\Dispatcher; |
|
7 | 6 | use ReflectionMethod; |
8 | 7 | |
9 | 8 | /** |
@@ -1,10 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Behat\Behat\Tester\Exception\PendingException; |
|
4 | 3 | use Drupal\DrupalExtension\Context\RawDrupalContext; |
5 | 4 | use Behat\Behat\Context\SnippetAcceptingContext; |
6 | -use Behat\Gherkin\Node\PyStringNode; |
|
7 | -use Behat\Gherkin\Node\TableNode; |
|
8 | 5 | |
9 | 6 | /** |
10 | 7 | * Defines application features from the specific context. |
@@ -83,6 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Get the number of mails received in a particular mail store. |
85 | 85 | * |
86 | + * @param string $store |
|
86 | 87 | * @return int |
87 | 88 | * The number of mails received during this scenario. |
88 | 89 | */ |
@@ -122,7 +123,7 @@ discard block |
||
122 | 123 | /** |
123 | 124 | * Compare actual mail with expected mail. |
124 | 125 | * |
125 | - * @param array $actualMail |
|
126 | + * @param \stdClass[] $actualMail |
|
126 | 127 | * An array of actual mail. |
127 | 128 | * @param array $expectedMail |
128 | 129 | * An array of expected mail. |
@@ -3,21 +3,15 @@ |
||
3 | 3 | namespace Drupal\DrupalExtension\Context; |
4 | 4 | |
5 | 5 | use Behat\MinkExtension\Context\RawMinkContext; |
6 | -use Behat\Mink\Exception\DriverException; |
|
7 | 6 | use Behat\Testwork\Hook\HookDispatcher; |
8 | 7 | use Behat\Behat\Context\Environment\InitializedContextEnvironment; |
9 | - |
|
10 | 8 | use Drupal\DrupalDriverManager; |
11 | 9 | use Drupal\DrupalExtension\DrupalParametersTrait; |
12 | 10 | use Drupal\DrupalExtension\Manager\DrupalAuthenticationManagerInterface; |
13 | 11 | use Drupal\DrupalExtension\Manager\DrupalUserManagerInterface; |
14 | - |
|
15 | -use Drupal\DrupalExtension\Hook\Scope\AfterLanguageEnableScope; |
|
16 | 12 | use Drupal\DrupalExtension\Hook\Scope\AfterNodeCreateScope; |
17 | 13 | use Drupal\DrupalExtension\Hook\Scope\AfterTermCreateScope; |
18 | 14 | use Drupal\DrupalExtension\Hook\Scope\AfterUserCreateScope; |
19 | -use Drupal\DrupalExtension\Hook\Scope\BaseEntityScope; |
|
20 | -use Drupal\DrupalExtension\Hook\Scope\BeforeLanguageEnableScope; |
|
21 | 15 | use Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope; |
22 | 16 | use Drupal\DrupalExtension\Hook\Scope\BeforeUserCreateScope; |
23 | 17 | use Drupal\DrupalExtension\Hook\Scope\BeforeTermCreateScope; |
@@ -193,6 +193,7 @@ discard block |
||
193 | 193 | /** |
194 | 194 | * Get active Drupal Driver. |
195 | 195 | * |
196 | + * @param string $name |
|
196 | 197 | * @return \Drupal\Driver\DrupalDriver |
197 | 198 | */ |
198 | 199 | public function getDriver($name = null) |
@@ -326,7 +327,7 @@ discard block |
||
326 | 327 | /** |
327 | 328 | * Dispatch scope hooks. |
328 | 329 | * |
329 | - * @param string $scope |
|
330 | + * @param string $scopeType |
|
330 | 331 | * The entity scope to dispatch. |
331 | 332 | * @param \stdClass $entity |
332 | 333 | * The entity. |
@@ -51,6 +51,7 @@ discard block |
||
51 | 51 | * @When I visit :path |
52 | 52 | * |
53 | 53 | * @throws UnsupportedDriverActionException |
54 | + * @param string $path |
|
54 | 55 | */ |
55 | 56 | public function assertAtPath($path) |
56 | 57 | { |
@@ -126,6 +127,7 @@ discard block |
||
126 | 127 | * @see \Drupal\FunctionalJavascriptTests\JSWebAssert::assertWaitOnAjaxRequest() |
127 | 128 | * |
128 | 129 | * @Given I wait for AJAX to finish |
130 | + * @param \Behat\Behat\Hook\Scope\BeforeStepScope $event |
|
129 | 131 | */ |
130 | 132 | public function iWaitForAjaxToFinish($event = null) |
131 | 133 | { |
@@ -546,6 +548,7 @@ discard block |
||
546 | 548 | |
547 | 549 | /** |
548 | 550 | * @Then I should get a :code HTTP response |
551 | + * @param string $code |
|
549 | 552 | */ |
550 | 553 | public function assertHttpResponse($code) |
551 | 554 | { |