@@ -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 | /** |
@@ -4,15 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Behat\MinkExtension\Context\RawMinkContext; |
| 6 | 6 | use Behat\Testwork\Hook\HookDispatcher; |
| 7 | - |
|
| 8 | 7 | use Drupal\DrupalDriverManager; |
| 9 | - |
|
| 10 | -use Drupal\DrupalExtension\Hook\Scope\AfterLanguageEnableScope; |
|
| 11 | 8 | use Drupal\DrupalExtension\Hook\Scope\AfterNodeCreateScope; |
| 12 | 9 | use Drupal\DrupalExtension\Hook\Scope\AfterTermCreateScope; |
| 13 | 10 | use Drupal\DrupalExtension\Hook\Scope\AfterUserCreateScope; |
| 14 | -use Drupal\DrupalExtension\Hook\Scope\BaseEntityScope; |
|
| 15 | -use Drupal\DrupalExtension\Hook\Scope\BeforeLanguageEnableScope; |
|
| 16 | 11 | use Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope; |
| 17 | 12 | use Drupal\DrupalExtension\Hook\Scope\BeforeUserCreateScope; |
| 18 | 13 | use Drupal\DrupalExtension\Hook\Scope\BeforeTermCreateScope; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * out' link text. |
| 138 | 138 | * @throws \Exception |
| 139 | 139 | * @return |
| 140 | - */ |
|
| 140 | + string |
|
| 141 | 141 | public function getDrupalText($name) { |
| 142 | 142 | $text = $this->getDrupalParameter('text'); |
| 143 | 143 | if (!isset($text[$name])) { |
@@ -163,6 +163,7 @@ discard block |
||
| 163 | 163 | /** |
| 164 | 164 | * Get active Drupal Driver. |
| 165 | 165 | * |
| 166 | + * @param string $name |
|
| 166 | 167 | * @return \Drupal\Driver\DrupalDriver |
| 167 | 168 | */ |
| 168 | 169 | public function getDriver($name = NULL) { |
@@ -284,7 +285,7 @@ discard block |
||
| 284 | 285 | /** |
| 285 | 286 | * Dispatch scope hooks. |
| 286 | 287 | * |
| 287 | - * @param string $scope |
|
| 288 | + * @param string $scopeType |
|
| 288 | 289 | * The entity scope to dispatch. |
| 289 | 290 | * @param \stdClass $entity |
| 290 | 291 | * The entity. |
@@ -48,6 +48,7 @@ discard block |
||
| 48 | 48 | * @When I visit :path |
| 49 | 49 | * |
| 50 | 50 | * @throws UnsupportedDriverActionException |
| 51 | + * @param string $path |
|
| 51 | 52 | */ |
| 52 | 53 | public function assertAtPath($path) { |
| 53 | 54 | $this->getSession()->visit($this->locatePath($path)); |
@@ -482,6 +483,7 @@ discard block |
||
| 482 | 483 | |
| 483 | 484 | /** |
| 484 | 485 | * @Then I should get a :code HTTP response |
| 486 | + * @param string $code |
|
| 485 | 487 | */ |
| 486 | 488 | public function assertHttpResponse($code) { |
| 487 | 489 | // Use the Mink Extension step definition. |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Checks if the current page contains the given error message |
| 23 | 23 | * |
| 24 | - * @param $message |
|
| 24 | + * @param string $message |
|
| 25 | 25 | * string The text to be checked |
| 26 | 26 | * |
| 27 | 27 | * @Then I should see the error message( containing) :message |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * Checks if the current page does not contain the given error message |
| 55 | 55 | * |
| 56 | - * @param $message |
|
| 56 | + * @param string $message |
|
| 57 | 57 | * string The text to be checked |
| 58 | 58 | * |
| 59 | 59 | * @Given I should not see the error message( containing) :message |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Checks if the current page contains the given success message |
| 86 | 86 | * |
| 87 | - * @param $message |
|
| 87 | + * @param string $message |
|
| 88 | 88 | * string The text to be checked |
| 89 | 89 | * |
| 90 | 90 | * @Then I should see the success message( containing) :message |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Checks if the current page does not contain the given set of success message |
| 118 | 118 | * |
| 119 | - * @param $message |
|
| 119 | + * @param string $message |
|
| 120 | 120 | * string The text to be checked |
| 121 | 121 | * |
| 122 | 122 | * @Given I should not see the success message( containing) :message |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Checks if the current page contains the given warning message |
| 149 | 149 | * |
| 150 | - * @param $message |
|
| 150 | + * @param string $message |
|
| 151 | 151 | * string The text to be checked |
| 152 | 152 | * |
| 153 | 153 | * @Then I should see the warning message( containing) :message |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * Checks if the current page does not contain the given set of warning message |
| 181 | 181 | * |
| 182 | - * @param $message |
|
| 182 | + * @param string $message |
|
| 183 | 183 | * string The text to be checked |
| 184 | 184 | * |
| 185 | 185 | * @Given I should not see the warning message( containing) :message |
@@ -245,12 +245,12 @@ discard block |
||
| 245 | 245 | * |
| 246 | 246 | * @param $message |
| 247 | 247 | * string The message to be checked |
| 248 | - * @param $selectorId |
|
| 248 | + * @param string $selectorId |
|
| 249 | 249 | * string CSS selector name |
| 250 | - * @param $exceptionMsgNone |
|
| 250 | + * @param string $exceptionMsgNone |
|
| 251 | 251 | * string The message being thrown when no message is contained, string |
| 252 | 252 | * should contain one '%s' as a placeholder for the current URL |
| 253 | - * @param $exceptionMsgMissing |
|
| 253 | + * @param string $exceptionMsgMissing |
|
| 254 | 254 | * string The message being thrown when the message is not contained, string |
| 255 | 255 | * should contain two '%s' as placeholders for the current URL and the message. |
| 256 | 256 | * |
@@ -276,9 +276,9 @@ discard block |
||
| 276 | 276 | * |
| 277 | 277 | * @param $message |
| 278 | 278 | * string The message to be checked |
| 279 | - * @param $selectorId |
|
| 279 | + * @param string $selectorId |
|
| 280 | 280 | * string CSS selector name |
| 281 | - * @param $exceptionMsg |
|
| 281 | + * @param string $exceptionMsg |
|
| 282 | 282 | * string The message being thrown when the message is contained, string |
| 283 | 283 | * should contain two '%s' as placeholders for the current URL and the message. |
| 284 | 284 | * |