@@ -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. |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\DrupalExtension\Context; |
| 4 | 4 | |
| 5 | -use Behat\MinkExtension\Context\RawMinkContext; |
|
| 6 | 5 | use Behat\Behat\Context\TranslatableContext; |
| 7 | 6 | |
| 8 | 7 | /** |