@@ -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 | /** |
@@ -470,6 +470,7 @@ |
||
| 470 | 470 | |
| 471 | 471 | /** |
| 472 | 472 | * @Then I should get a :code HTTP response |
| 473 | + * @param string $code |
|
| 473 | 474 | */ |
| 474 | 475 | public function assertHttpResponse($code) { |
| 475 | 476 | // Use the Mink Extension step definition. |
@@ -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])) { |
@@ -162,6 +162,7 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * Get active Drupal Driver. |
| 165 | + * @param string $name |
|
| 165 | 166 | */ |
| 166 | 167 | public function getDriver($name = NULL) { |
| 167 | 168 | return $this->getDrupal()->getDriver($name); |
@@ -282,9 +283,9 @@ discard block |
||
| 282 | 283 | /** |
| 283 | 284 | * Dispatch scope hooks. |
| 284 | 285 | * |
| 285 | - * @param string $scope |
|
| 286 | + * @param string $scopeType |
|
| 286 | 287 | * The entity scope to dispatch. |
| 287 | - * @param stdClass $entity |
|
| 288 | + * @param \stdClass $entity |
|
| 288 | 289 | * The entity. |
| 289 | 290 | */ |
| 290 | 291 | protected function dispatchHooks($scopeType, \stdClass $entity) { |