@@ -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. |
@@ -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 | { |