@@ -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 | /** |
@@ -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 | { |
@@ -535,6 +536,7 @@ discard block |
||
| 535 | 536 | |
| 536 | 537 | /** |
| 537 | 538 | * @Then I should get a :code HTTP response |
| 539 | + * @param string $code |
|
| 538 | 540 | */ |
| 539 | 541 | public function assertHttpResponse($code) |
| 540 | 542 | { |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * Checks if the current page contains the given error message |
| 25 | 25 | * |
| 26 | - * @param $message |
|
| 26 | + * @param string $message |
|
| 27 | 27 | * string The text to be checked |
| 28 | 28 | * |
| 29 | 29 | * @Then I should see the error message( containing) :message |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Checks if the current page contains the given set of error messages |
| 43 | 43 | * |
| 44 | - * @param array $messages |
|
| 44 | + * @param TableNode $messages |
|
| 45 | 45 | * An array of texts to be checked. The first row should consist of the |
| 46 | 46 | * string "Error messages". |
| 47 | 47 | * |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Checks if the current page does not contain the given error message |
| 62 | 62 | * |
| 63 | - * @param $message |
|
| 63 | + * @param string $message |
|
| 64 | 64 | * string The text to be checked |
| 65 | 65 | * |
| 66 | 66 | * @Given I should not see the error message( containing) :message |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Checks if the current page does not contain the given set error messages |
| 79 | 79 | * |
| 80 | - * @param array $messages |
|
| 80 | + * @param TableNode $messages |
|
| 81 | 81 | * An array of texts to be checked. The first row should consist of the |
| 82 | 82 | * string "Error messages". |
| 83 | 83 | * |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * Checks if the current page contains the given success message |
| 98 | 98 | * |
| 99 | - * @param $message |
|
| 99 | + * @param string $message |
|
| 100 | 100 | * string The text to be checked |
| 101 | 101 | * |
| 102 | 102 | * @Then I should see the success message( containing) :message |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * Checks if the current page contains the given set of success messages |
| 116 | 116 | * |
| 117 | - * @param array $message |
|
| 117 | + * @param array $messages |
|
| 118 | 118 | * An array of texts to be checked. The first row should consist of the |
| 119 | 119 | * string "Success messages". |
| 120 | 120 | * |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Checks if the current page does not contain the given set of success message |
| 135 | 135 | * |
| 136 | - * @param $message |
|
| 136 | + * @param string $message |
|
| 137 | 137 | * string The text to be checked |
| 138 | 138 | * |
| 139 | 139 | * @Given I should not see the success message( containing) :message |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | /** |
| 151 | 151 | * Checks if the current page does not contain the given set of success messages |
| 152 | 152 | * |
| 153 | - * @param array $message |
|
| 153 | + * @param array $messages |
|
| 154 | 154 | * An array of texts to be checked. The first row should consist of the |
| 155 | 155 | * string "Success messages". |
| 156 | 156 | * |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * Checks if the current page contains the given warning message |
| 171 | 171 | * |
| 172 | - * @param $message |
|
| 172 | + * @param string $message |
|
| 173 | 173 | * string The text to be checked |
| 174 | 174 | * |
| 175 | 175 | * @Then I should see the warning message( containing) :message |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Checks if the current page contains the given set of warning messages |
| 189 | 189 | * |
| 190 | - * @param array $message |
|
| 190 | + * @param array $messages |
|
| 191 | 191 | * An array of texts to be checked. The first row should consist of the |
| 192 | 192 | * string "Warning messages". |
| 193 | 193 | * |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * Checks if the current page does not contain the given set of warning message |
| 208 | 208 | * |
| 209 | - * @param $message |
|
| 209 | + * @param string $message |
|
| 210 | 210 | * string The text to be checked |
| 211 | 211 | * |
| 212 | 212 | * @Given I should not see the warning message( containing) :message |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | /** |
| 224 | 224 | * Checks if the current page does not contain the given set of warning messages |
| 225 | 225 | * |
| 226 | - * @param array $message |
|
| 226 | + * @param array $messages |
|
| 227 | 227 | * An array of texts to be checked. The first row should consist of the |
| 228 | 228 | * string "Warning messages". |
| 229 | 229 | * |
@@ -308,12 +308,12 @@ discard block |
||
| 308 | 308 | * |
| 309 | 309 | * @param $message |
| 310 | 310 | * string The message to be checked |
| 311 | - * @param $selectorId |
|
| 311 | + * @param string $selectorId |
|
| 312 | 312 | * string CSS selector name |
| 313 | - * @param $exceptionMsgNone |
|
| 313 | + * @param string $exceptionMsgNone |
|
| 314 | 314 | * string The message being thrown when no message is contained, string |
| 315 | 315 | * should contain one '%s' as a placeholder for the current URL |
| 316 | - * @param $exceptionMsgMissing |
|
| 316 | + * @param string $exceptionMsgMissing |
|
| 317 | 317 | * string The message being thrown when the message is not contained, string |
| 318 | 318 | * should contain two '%s' as placeholders for the current URL and the message. |
| 319 | 319 | * |
@@ -340,9 +340,9 @@ discard block |
||
| 340 | 340 | * |
| 341 | 341 | * @param $message |
| 342 | 342 | * string The message to be checked |
| 343 | - * @param $selectorId |
|
| 343 | + * @param string $selectorId |
|
| 344 | 344 | * string CSS selector name |
| 345 | - * @param $exceptionMsg |
|
| 345 | + * @param string $exceptionMsg |
|
| 346 | 346 | * string The message being thrown when the message is contained, string |
| 347 | 347 | * should contain two '%s' as placeholders for the current URL and the message. |
| 348 | 348 | * |